Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encrypt ¶
Encrypt takes a plaintext byte array and encrypts it using the provided key. It returns the ciphertext and an error if one occurs. It generates the cipher text using AES-GCM and a nonce. A Nonce is a number that can only be used once and will be unique for each encryption, but it is not a secret It is safe to store the nonce alongside the ciphertext The nonce is prepended to the ciphertext
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.