Skip to Content Skip to Search

class ActiveRecord::Encryption::DerivedSecretKeyProvider

A KeyProvider that derives keys from passwords.

Inherits From

Public class methods

Source code GitHub
# File activerecord/lib/active_record/encryption/derived_secret_key_provider.rb, line 7
def initialize(passwords, key_generator: ActiveRecord::Encryption.key_generator)
  super(Array(passwords).collect { |password| derive_key_from(password, using: key_generator) })
end

Definition files