Versions in this module Expand all Collapse all v1 v1.1.0 Oct 29, 2026 v1.0.0 Oct 26, 2026 Changes in this version + func Decrypt(cipherText string, key string) ([]byte, error) + func Encrypt(data []byte, key string) (string, error) + func Equal(hash1 string, hash2 string) bool + func HS256(text string, secret string) string + func HS512(text string, secret string) string + func MD5(text string) string + func NewJWT(payload jwt.MapClaims, signingKey string, duration time.Duration) (string, error) + func ParseJWT(token string, verificationKey string) (jwt.MapClaims, error) + func ParseUnverifiedJWT(token string) (jwt.MapClaims, error) + func PseudorandomString(length int) string + func PseudorandomStringWithAlphabet(length int, alphabet string) string + func RandomString(length int) string + func RandomStringByRegex(pattern string, optFlags ...syntax.Flags) (string, error) + func RandomStringWithAlphabet(length int, alphabet string) string + func S256Challenge(code string) string + func SHA256(text string) string + func SHA512(text string) string