DecodeBase64 is a convenience function to decode using StdEncoding.
DecryptAES decrypts an AES encoded byte, using a hard-wired key value, suitable for use when reading an authentication token.
EncodeBase64 is a convenience function to encode using StdEncoding.
GeneratePassword returns a hashed password.
GenerateRandom returns a string of the specified length using crypo/rand
GenerateRandomPassword provides a string suitable for use as a password.
GenerateSalt provides a string suitable for use as a salt value.
MakeAES creates an AES encryption of of a given string, using a hard-wired key value, suitable for use as an authentication token.
MatchPassword copares a hashed password with a clear one.
RandSalt generates 16 character value for use in JWT token as salt.