class
ActiveRecord::Encryption::Encryptor
v7.0.0 -
Show latest stable
- Superclass: Object
An encryptor exposes the encryption API that +ActiveRecord::Encryption::EncryptedAttributeType+ uses for encrypting and decrypting attribute values.
It interacts with a KeyProvider for getting the keys, and delegate to +ActiveRecord::Encryption::Cipher+ the actual encryption algorithm.
Constants
DECRYPT_ERRORS = [OpenSSL::Cipher::CipherError, Errors::EncryptedContentIntegrity, Errors::Decryption]
ENCODING_ERRORS = [EncodingError, Errors::Encoding]
THRESHOLD_TO_JUSTIFY_COMPRESSION = 140.bytes
Files
- activerecord/lib/active_record/encryption/encryptor.rb