Secrex v0.2.0 Secrex.Cipher behaviour View Source

Link to this section Summary

Link to this section Types

Link to this section Callbacks

Link to this callback

decrypt(ciphertext, key) View Source
decrypt(ciphertext(), key()) :: {:ok, plaintext()} | {:error, reason :: atom()}

Link to this callback

encrypt(plaintext, key) View Source
encrypt(plaintext(), key()) :: {:ok, ciphertext()} | {:error, reason :: atom()}