Sha256: 6484597434b1e758deeba9f7e83571c56cbd46414cb0c270408b7f4d45f6b050
Contents?: true
Size: 445 Bytes
Versions: 14
Compression:
Stored size: 445 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
14 entries across 14 versions & 2 rubygems