Magik.Crypto.decrypt

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

decrypt(ciphertext, secret_key)

View Source

Specs

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

Decode cipher data which encrypted using encrypt/2

key = generate_secret()
{:ok, cipher} = encrypt("hello", key)
decrypt(cipher, key)