Documentation ¶
Index ¶
- func AES256Decrypt(data []byte, key []byte) ([]byte, error)
- func AES256Encrypt(message []byte, key []byte) ([]byte, error)
- func GenerateRandomKey(len int) ([]byte, error)
- func HMACSHA256(secret string, message string) (string, error)
- func MD5(message string) (string, error)
- func SHA256(message string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AES256Decrypt ¶ added in v1.1.0
AES256Decrypt will run AES-256 decryption on the provided data.
func AES256Encrypt ¶ added in v1.1.0
AES256Encrypt will run AES-256 excryption on the provided message.
func GenerateRandomKey ¶ added in v1.1.0
GenerateRandomKey will generate a new random key.
func HMACSHA256 ¶
HMACSHA256 returns a SHA-256 of the given message signed by the secret.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.