View Source Fernet.Ecto.String (fernet-ecto v2.0.0-rc.0)

An Ecto type for Fernet-encrypted strings.

Summary

Functions

Only accept binary and string plaintext values.

Encrypt a value to store in the database.

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

Decrypt a value loaded from the database.

Fernet-encrypted data is stored as a binary in the database.

Functions

Only accept binary and string plaintext values.

Encrypt a value to store in the database.

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

Decrypt a value loaded from the database.

Fernet-encrypted data is stored as a binary in the database.