method
derive_key_from
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::Encryption::KeyGenerator
derive_key_from(password, length: key_length)public
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+