Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecrypt ¶
AESDecrypt decrypts a payload encrypted using AES-CBC and PKCS#7 padding. The decryption algorithm makes three assumptions: 1. ciphertext is aligned to the standard AES block size 2. ciphertext is padded using PKCS#7 3. the IV is prepended to ciphertext This function is DEPRECATED. Use Decrypt() instead.
func AESEncrypt ¶
AESEncrypt encrypts a payload using AES-CBC and PKCS#7 padding. The returned ciphertext has three notable properties: 1. ciphertext is aligned to the standard AES block size 2. ciphertext is padded using PKCS#7 3. IV is prepended to the ciphertext This function is DEPRECATED. Use Encrypt() instead.
func Decrypt ¶ added in v0.2.0
Decrypt decrypts data using 256-bit AES-GCM. This both hides the content of the data and provides a check that it hasn't been altered. Expects input form nonce|ciphertext|tag where '|' indicates concatenation.
Types ¶
This section is empty.