Documentation ¶
Overview ¶
Package crypt provides cryptographic funcitonalities
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesGcmDecrypt ¶
AesGcmDecrypt decrypts the encrypted data using AES in a GCM mode. The data should be a base64 encoded string in the format of 12 byte nonce followed by a ciphertext.
func AesGcmEncrypt ¶
AesGcmEncrypt encrypts the plaintext using AES in a GCM mode. It returns a ciphertext prepended by a 12 byte pseudo-random nonce, encoded in base64.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.