Documentation ¶
Index ¶
Constants ¶
View Source
const CHARS string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
View Source
const KEYLEN uint = 32
using aes256, so 32 bytes-long key
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
Decrypts encrypted aes data with given key. https://www.melvinvivas.com/how-to-encrypt-and-decrypt-data-using-aes/ - very grateful to the author, THANK YOU.
func Encrypt ¶
Encrypts given data using aes encryption. https://www.melvinvivas.com/how-to-encrypt-and-decrypt-data-using-aes/ - very grateful to the author, THANK YOU.
func Generate32AESkey ¶
func Generate32AESkey() []byte
Generates 32 pseudo-random bytes to use as a key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.