Method: Authlogic::CryptoProviders::Sha256::V2.encrypt
- Defined in:
- lib/authlogic/crypto_providers/sha256/v2.rb
.encrypt(*tokens) ⇒ Object
Turns your raw password into a Sha256 hash.
43 44 45 46 47 |
# File 'lib/authlogic/crypto_providers/sha256/v2.rb', line 43 def encrypt(*tokens) digest = tokens.flatten.join(join_token) stretches.times { digest = Digest::SHA256.digest(digest) } digest.unpack1("H*") end |