cloak v0.4.0 API Reference

Modules

Cloak makes it easy to encrypt and decrypt database fields using Ecto

A Cloak.Cipher which encrypts values with the AES cipher in CTR (stream) mode

A Cloak.Cipher which encrypts values with the AES cipher in GCM (block) mode

A behaviour for encryption/decryption modules. Use it to write your own custom Cloak-compatible cipher modules

Centralized utility module for cipher config related operations

An Ecto.Type to encrypt a binary field

An Ecto.Type to encrypt a float field

An Ecto.Type to encrypt integer fields

An Ecto.Type to encrypt maps

An Ecto.Type which hashes the field value using the SHA256 algorithm

A decoder that will let us read tags specified in the Format specified by the Cloak.Tags.Encoder

An encoder that allows us to specify tags of arbitrary length

Mix Tasks

Migrate all configured schemas to your new encryption configuration