Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypter ¶
Decrypt extracts the text from the base64 encoded encrypted string using the secrete key and initialization vectory used to encrypt the text
plainPhrase - is a plain text extracted from an encrypted text
valid - true if plainPhrase is a valid base64 string. It's false if plainPhrase is not a valid base64 string
func Encrypt ¶
Encrypt encrypts plainPhrase using the given secrete key and initialization vector(iv). Then returns an encrypted base64 URL-encoded string.
func RandBytes ¶
RandBytes generates a random []byte of length len
(Very handy for creating initiliazation vectors but you are not limited to!)
func RandString ¶
RandString generates a random base64 URL-encoded string of length len
Types ¶
This section is empty.