Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
Used to decrypt a provided string that was previously created with aes256.Encrypt(). This function processes hex encoded stirngs so it should work with any secret as long as it's hex encoded.
func Encrypt ¶
Used to encrypt a provided string using a provided key string. It's converted to a []byte within the program for processing.
func Random32ByteString ¶
func Random32ByteString() string
Generates a random string to use as an AES key. These keys need to be exactly 32 characters long and it's done as a string to be stored in plaintext.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.