我有一个应用程序,它使用设计的身份验证令牌机制来做客户端令牌身份验证。我想知道gem使用什么算法来生成令牌本身?是BCrypt吗?MD5等...
发布于 2013-01-24 05:12:25
代码在devise.rb中
# Generate a friendly string randomically to be used as token.
def self.friendly_token
SecureRandom.base64(15).tr('+/=lIO0', 'pqrsxyz')
endhttp://rdoc.info/github/plataformatec/devise/Devise.friendly_token
https://stackoverflow.com/questions/14488812
复制相似问题