Rails生成随机字符串及加解密

1.生成安全的base64字符串

  key = SecureRandom.urlsafe_base64

原文地址:https://www.cnblogs.com/gdpdroid/p/6877596.html