encrypt
Encrypts plaintext using ChaCha20.
Return
The encrypted ciphertext
Parameters
plaintext
The data to encrypt
key
The 32-byte encryption key
nonce
The 12-byte nonce
Encrypts plaintext using ChaCha20.
The encrypted ciphertext
The data to encrypt
The 32-byte encryption key
The 12-byte nonce