decryptSecretBox

Wrapper around crypto_secretbox_open_easy. Decrypts a cipher using a nonce and key and returns the decrypted message. If decryption fails, null is returned.

ubyte[]
decryptSecretBox
(
in ubyte[] cipher
,
in Nonce nonce
,
in SecretKey key
)
in { assert (cipher.length > SecretMacLength); }

Meta