Sha256: 36e5574233e2d8a9660c5a060d96742b982c1bd548be4d77255d3b0c0e3455b3
Contents?: true
Size: 315 Bytes
Versions: 29
Compression:
Stored size: 315 Bytes
Contents
# frozen_string_literal: true module ActiveRecord module Encryption # A KeyProvider that derives keys from passwords. class DerivedSecretKeyProvider < KeyProvider def initialize(passwords) super(Array(passwords).collect { |password| Key.derive_from(password) }) end end end end
Version data entries
29 entries across 29 versions & 6 rubygems