lib/encryptors/aes256.rb
# Returns a Base64 encrypted password where pepper is used for the key,
# and the initialization_vector is randomly generated and prepended onto
# encoded ciphertext
Returns a Base64 encrypted password where pepper is used for the key,
and the initialization_vector is randomly generated and prepended onto
encoded ciphertext
Returns a Base64 encrypted password where pepper is used for the key and the initialization_vector is randomly generated and prepended onto encoded ciphertext
def digest(password, stretches, salt, pepper)
            begin
              ::AES.encrypt(password, pepper, {:iv => salt}) if password
            rescue
              nil
            end
          end
def digest ( password , stretches , salt , pepper ) begin :: AES . encrypt ( password , pepper , { :iv => salt } ) if password rescue nil end end
Returns a Base64 encrypted password where pepper is used for the key,
and the initialization_vector is randomly generated and prepended onto
encoded ciphertext
Returns a Base64 encrypted password where pepper is used for the key and the initialization_vector is randomly generated and prepended onto encoded ciphertext
password
<not_specific>
stretches
<not_specific>
salt
<not_specific>
pepper
<not_specific>