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