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

1.生成安全的base64字符串

  key = SecureRandom.urlsafe_base64

posted @ 2017-05-19 11:47  zhuxian300c  阅读(318)  评论(0编辑  收藏  举报