W3cubDocs

/Ruby on Rails 7.0

class ActiveRecord::Encryption::DerivedSecretKeyProvider

Parent:
KeyProvider

A KeyProvider that derives keys from passwords.

Public Class Methods

new(passwords) Show source
# File activerecord/lib/active_record/encryption/derived_secret_key_provider.rb, line 7
def initialize(passwords)
  super(Array(passwords).collect { |password| Key.derive_from(password) })
end
Calls superclass method

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.