Magik.Crypto.decrypt_aead

You're seeing just the function decrypt_aead, go back to Magik.Crypto module for more information.
Link to this function

decrypt_aead(ciphertext, secret_key)

View Source

Specs

decrypt_aead(String.t(), String.t()) :: {:ok, String.t()} | {:error, String.t()}

Decode cipher data which encrypted using encrypt/2

key = generate_secret()
{:ok, cipher} = encrypt_aead("hello", key)
decrypt_aead(cipher, key)