Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
Decrypt decrypts data using AES-GCM with a 256-bit key. If no key is provided, it will use the STDEXT_ENC_KEY environment variable. If that is not set, it will return an error.
Parameters:
- data: the data to decrypt
- key: the key to use for decryption
Returns:
- the decrypted data
- an error if one occurred
func Encrypt ¶
Encrypt encrypts data using AES-GCM with a 256-bit key. If no key is provided, it will use the STDEXT_ENC_KEY environment variable. If that is not set, it will return an error.
Parameters:
- data: the data to encrypt
- key: the key to use for encryption
Returns:
- the encrypted data
- an error if one occurred
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.