instance method
encryptor
Ruby on Rails edge
Since v5.2.8.1 Private — implementation detail, not part of the public APISignature
encryptor()
No documentation comment.
Source
# File activesupport/lib/active_support/encrypted_file.rb, line 113
def encryptor
@encryptor ||= begin
keys = key.split(",")
encryptor = ActiveSupport::MessageEncryptor.new([ keys.shift ].pack("H*"), cipher: CIPHER, serializer: Marshal)
keys.each { |key| encryptor.rotate([ key ].pack("H*")) }
encryptor
end
end
Defined in activesupport/lib/active_support/encrypted_file.rb line 113
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::EncryptedFile