Object
This class was made for the users transitioning from restful_authentication. I highly discourage using this crypto provider as it is far inferior to your other options. Please use any other provider offered by Authlogic.
Turns your raw password into a Sha1 hash.
# File lib/authlogic/crypto_providers/sha1.rb, line 21 def encrypt(*tokens) tokens = tokens.flatten digest = tokens.shift stretches.times { digest = Digest::SHA1.hexdigest([digest, *tokens].join(join_token)) } digest end
# File lib/authlogic/crypto_providers/sha1.rb, line 9 def join_token @join_token ||= "--" end
Generated with the Darkfish Rdoc Generator 2.