EctoCrypto.EctoTypes.EncryptedBinary (EctoCrypto v0.2.2) View Source
Ecto Type for encrypting and decrypting binaries (including strings).
Defines an Ecto Type which can be cast as a binary string which encrypts the string using AES-256 GCM before it is inserted into the database.
When the value is retrieved from the database, it is decrypted before it is dumped to the Ecto schema struct.
Link to this section Summary
Functions
Callback implementation for Ecto.Type.cast/1
.
Callback implementation for Ecto.Type.dump/1
.
Callback implementation for Ecto.Type.embed_as/1
.
Callback implementation for Ecto.Type.equal?/2
.
Callback implementation for Ecto.Type.load/1
.
Callback implementation for Ecto.Type.type/0
.
Link to this section Functions
Callback implementation for Ecto.Type.cast/1
.
Callback implementation for Ecto.Type.dump/1
.
Callback implementation for Ecto.Type.embed_as/1
.
Callback implementation for Ecto.Type.equal?/2
.
Callback implementation for Ecto.Type.load/1
.
Callback implementation for Ecto.Type.type/0
.