Used for non-deterministic encryption (default). Uses random IV.
module
ActiveRecord::Encryption
Defined in:
active_record/encryption.cractive_record/encryption/encryptor.cr
active_record/encryption/error.cr
active_record/encryption/key_generator.cr
Class Method Summary
- .cipher_for(deterministic = false)
- .decryption_keys
- .deterministic_cipher : ActiveRecord::Encryption::Cipher
- .deterministic_cipher=(deterministic_cipher : ActiveRecord::Encryption::Cipher)
- .deterministic_encryption_key
-
.deterministic_key : String
Corresponds to Rails
config.active_record.encryption.deterministic_keyEnables deterministic encryption for queryable encrypted attributes. -
.deterministic_key=(deterministic_key : String)
Corresponds to Rails
config.active_record.encryption.deterministic_keyEnables deterministic encryption for queryable encrypted attributes. - .encryptor : ActiveRecord::Encryption::Encryptor
- .encryptor=(val)
-
.key_derivation_salt : String
Corresponds to Rails
config.active_record.encryption.key_derivation_saltUsed to derive encryption keys from the primary key. -
.key_derivation_salt=(key_derivation_salt : String)
Corresponds to Rails
config.active_record.encryption.key_derivation_saltUsed to derive encryption keys from the primary key. -
.primary_cipher : ActiveRecord::Encryption::Cipher
Used for non-deterministic encryption (default).
-
.primary_cipher=(primary_cipher : ActiveRecord::Encryption::Cipher)
Used for non-deterministic encryption (default).
- .primary_encryption_key
-
.primary_key : String
Corresponds to Rails
config.active_record.encryption.primary_keySee: https://guides.rubyonrails.org/active_record_encryption.html -
.primary_key=(primary_key : String)
Corresponds to Rails
config.active_record.encryption.primary_keySee: https://guides.rubyonrails.org/active_record_encryption.html -
.primary_sha1_cipher : ActiveRecord::Encryption::Cipher
Used for SHA1-based encryption (legacy support).
-
.primary_sha1_cipher=(primary_sha1_cipher : ActiveRecord::Encryption::Cipher)
Used for SHA1-based encryption (legacy support).
- .primary_sha1_encryption_key
Class Method Detail
Corresponds to Rails config.active_record.encryption.deterministic_key
Enables deterministic encryption for queryable encrypted attributes.
Corresponds to Rails config.active_record.encryption.deterministic_key
Enables deterministic encryption for queryable encrypted attributes.
Corresponds to Rails config.active_record.encryption.key_derivation_salt
Used to derive encryption keys from the primary key. Defaults to "ActiveRecord Encryption" in Rails.
Corresponds to Rails config.active_record.encryption.key_derivation_salt
Used to derive encryption keys from the primary key. Defaults to "ActiveRecord Encryption" in Rails.
Used for non-deterministic encryption (default). Uses random IV.
Corresponds to Rails config.active_record.encryption.primary_key
See: https://guides.rubyonrails.org/active_record_encryption.html
Corresponds to Rails config.active_record.encryption.primary_key
See: https://guides.rubyonrails.org/active_record_encryption.html
Used for SHA1-based encryption (legacy support).
Used for SHA1-based encryption (legacy support).