mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-01 16:04:19 +00:00
12 lines
296 B
Ruby
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
|