An encryption context configures the different entities used to perform encryption:
-
A key provider
-
A key generator
-
An encryptor, the facade to encrypt data
-
A cipher, the encryption algorithm
-
A message serializer
Methods
Constants
PROPERTIES | = | %i[ key_provider key_generator cipher message_serializer encryptor frozen_encryption ] |
Class Public methods
new()
📝 Source code
# File activerecord/lib/active_record/encryption/context.rb, line 17
def initialize
set_defaults
end
🔎 See on GitHub
Instance Public methods
key_provider()
📝 Source code
# File activerecord/lib/active_record/encryption/context.rb, line 24
def key_provider
@key_provider ||= build_default_key_provider
end
🔎 See on GitHub