Files
gitlab-foss/lib/gitlab/encryption/non_derived_key_provider.rb
2025-04-07 09:11:33 +00:00

12 lines
296 B
Ruby

# frozen_string_literal: true
module Gitlab
module Encryption
class NonDerivedKeyProvider < ActiveRecord::Encryption::KeyProvider
def initialize(passwords)
super(Array(passwords).collect { |password| ActiveRecord::Encryption::Key.new(password) })
end
end
end
end