Sha256: 2b2679800f6dabb309c40b231f8fd12f2563ee4989cb002078b8a53929302e4c
Contents?: true
Size: 625 Bytes
Versions: 3
Compression:
Stored size: 625 Bytes
Contents
module Authgasm # = Sha256 Crypto Provider # # The acts_as_authentic method allows you to pass a :crypto_provider option. This allows you to use any type of encryption you like. Just create a class with a class level encrypt and decrypt method. # The password will be passed as the single parameter to each of these methods so you can do your magic. # # If you are encrypting via a hash just don't include a decrypt method, since hashes can't be decrypted. Authgasm will notice this adjust accordingly. class Sha256CryptoProvider def self.encrypt(pass) Digest::SHA256.hexdigest(pass) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
authgasm-0.10.0 | lib/authgasm/sha256_crypto_provider.rb |
authgasm-0.9.1 | lib/authgasm/sha256_crypto_provider.rb |
authgasm-0.9.0 | lib/authgasm/sha256_crypto_provider.rb |