Namespace
- CLASS ActiveSupport::EncryptedFile::MissingContentError
- CLASS ActiveSupport::EncryptedFile::MissingKeyError
Methods
Constants
CIPHER | = | "aes-128-gcm" |
Attributes
[R] | content_path | |
[R] | env_key | |
[R] | key_path | |
[R] | raise_if_missing_key |
Class Public methods
generate_key()
Link
new(content_path:, key_path:, env_key:, raise_if_missing_key:)
Link
# File activesupport/lib/active_support/encrypted_file.rb, line 31 def initialize(content_path:, key_path:, env_key:, raise_if_missing_key:) @content_path, @key_path = Pathname.new(content_path), Pathname.new(key_path) @env_key, @raise_if_missing_key = env_key, raise_if_missing_key end
Instance Public methods
change(&block)
Link
key()
Link
read()
Link