struct
ActiveRecord::Encryption::KeyGenerator
- ActiveRecord::Encryption::KeyGenerator
- Struct
- Value
- Object
Defined in:
active_record/encryption/key_generator.crConstructors
Instance Method Summary
-
#derive_key_from(password, length = 32)
Derives a key from the given password.
Constructor Detail
Instance Method Detail
def derive_key_from(password, length = 32)
#
Derives a key from the given password. The key will have a size in bytes of +:length+ (configured +Cipher+'s length by default)
The generated key will be salted with the value of +ActiveRecord::Encryption.key_derivation_salt+