instance method
encrypt
Ruby on Rails 6.1.7.10
Since v5.2.8.1 PrivateSignature
encrypt(contents)
No documentation comment.
Parameters
-
contentsreq
Source
# File activesupport/lib/active_support/encrypted_file.rb, line 85
def encrypt(contents)
check_key_length
encryptor.encrypt_and_sign contents
end
Defined in activesupport/lib/active_support/encrypted_file.rb line 85
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::EncryptedFile