class
v8.0.0 - Show latest stable - Superclass: Object

The algorithm used for encrypting and decrypting Message objects.

It uses AES-256-GCM. It will generate a random IV for non deterministic encryption (default) or derive an initialization vector from the encrypted content for deterministic encryption.

See +Cipher::Aes256Gcm+.

Constants

DEFAULT_ENCODING = Encoding::UTF_8

Files

  • activerecord/lib/active_record/encryption.rb
  • activerecord/lib/active_record/encryption/cipher.rb
  • activerecord/lib/active_record/encryption/cipher/aes256_gcm.rb