func DecryptAES ¶
Use AES256-GCM to decrypt some ciphertext with a provided key and nonce. The returned values are the plaintext and error respectively.
func EncryptAES ¶
Use AES256-GCM to encrypt some plaintext with a provided key. The returned values are the ciphertext, the nonce, and error respectively.
generatePublicPrivateKey uses curve25519 to generate a public and private key pair.