An ActiveModel::Type::Value
that encrypts/decrypts strings of text.
This is the central piece that connects the encryption system with encrypts
declarations in the model classes. Whenever you declare an attribute as encrypted, it configures an EncryptedAttributeType
for that attribute.
Methods
- C
- D
- N
- S
Included Modules
Attributes
[R] | cast_type | |
[R] | scheme |
Class Public methods
new(scheme:, cast_type: ActiveModel::Type::String.new, previous_type: false) Link
Options
-
:scheme
- AScheme
with the encryption properties for this attribute. -
:cast_type
- A type that will be used to serialize (before encrypting) and deserialize (after decrypting).ActiveModel::Type::String
by default.