SaltDns.Encrypted.Binary (Salt v1.0.0)

Ecto type for encrypted binary columns. Values are encrypted by SaltDns.Vault on the way to the database and decrypted on the way back; the column holds only ciphertext. Ported from Karta.Encrypted.Binary (MIT, Shiloh B.V.).

A parameterized type: the required :context binds the ciphertext to its field, so a value copied into another column does not decrypt.

field :secret, SaltDns.Encrypted.Binary, context: "credentials.secret"