A KeyProvider that derives keys from passwords.

Methods

Class Public methods

new(passwords, key_generator: ActiveRecord::Encryption.key_generator)

📝 Source code
# 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
🔎 See on GitHub