View Source EctoEncryptedId.ExampleField.Id (EctoEncryptedId v0.1.0)
Container type for the encrypted field. Implements struct storing the id and related functions.
Summary
Functions
Create id struct from an encrypted value.
Create id struct from an encrypted value.
Create id struct from a plain integer value.
Types
Functions
Create id struct from an encrypted value.
Supported options:
- :secret_key_fn - custom function to fetch secret key
Returns {:ok, %Id{}}
on success or :error on failure
Create id struct from an encrypted value.
Supported options:
- :secret_key_fn - custom function to fetch secret key
Returns %Id{}
on success.
Raises EctoEncryptedId.DecryptionError
on failure.
Create id struct from a plain integer value.
Supported options:
- :secret_key_fn - custom function to fetch secret key
Returns %Id{}
.