Sha256: 2d4435149c1b320bccd4f4c18a709e90283feb3c3545ecb160002d982aa8843b
Contents?: true
Size: 443 Bytes
Versions: 71
Compression:
Stored size: 443 Bytes
Contents
# frozen_string_literal: true module ActiveRecord module Encryption # A KeyProvider that derives keys from passwords. class DeterministicKeyProvider < DerivedSecretKeyProvider def initialize(password) passwords = Array(password) raise ActiveRecord::Encryption::Errors::Configuration, "Deterministic encryption keys can't be rotated" if passwords.length > 1 super(passwords) end end end end
Version data entries
71 entries across 70 versions & 9 rubygems