View Source Secrex.Cipher behaviour (Secrex v0.4.0)
Link to this section Summary
Link to this section Types
Link to this section Callbacks
@callback decrypt(ciphertext(), key()) :: {:ok, plaintext()} | {:error, reason :: atom()}
@callback encrypt(plaintext(), key()) :: {:ok, ciphertext()} | {:error, reason :: atom()}