Kryptex.EncryptedField (kryptex v0.1.0)

Copy Markdown View Source

Parameterized Ecto type that encrypts values on dump/3 and decrypts on load/3.

Use it directly:

field :email, Kryptex.EncryptedField, source_type: :string

Or through Kryptex.Schema.encrypted_field/3.