package
0.36.1
Repository: https://github.com/raystack/frontier.git
Documentation: pkg.go.dev

# Functions

Decrypt decrypts data using 256-bit AES-GCM.
No description provided by the author
Encrypt encrypts data using 256-bit AES-GCM.
No description provided by the author
GenerateHMAC produces a SHA-512/256 hash using 256-bit key.
GenerateHMACFromHex produces a SHA-512/256 hash using 256-bit key.
GenerateRandomStringFromLetters generates a random string of the given length using the provided runes this function panics if - the provided length is less than 1 - if the provided runes are empty - if os fails to read random bytes.
NewEncryptionKey generates a random 256-bit key.
No description provided by the author
VerifyHMAC checks the supplied MAC against the hash of the data using the key.
VerifyHMACFromHex checks the supplied MAC against the hash of the data using the key.