cryptoutil

package
v0.1.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(s string) ([]byte, error)

func Base64Encode

func Base64Encode(data []byte) string

func Base64EncodeString

func Base64EncodeString(s string) string

func HMACSHA1Base64

func HMACSHA1Base64(data, secret []byte) string

func HMACSHA1Base64String

func HMACSHA1Base64String(data, secret string) string

func HMACSHA256

func HMACSHA256(data, secret []byte) string

func HMACSHA256String

func HMACSHA256String(data, secret string) string

func MD5

func MD5(data []byte) string

func MD5String

func MD5String(s string) string

func SHA256

func SHA256(data []byte) string

func SHA256String

func SHA256String(s string) string

func VerifyHMACSHA256

func VerifyHMACSHA256(data, secret []byte, signature string) (bool, error)

func VerifyHMACSHA256String

func VerifyHMACSHA256String(data, secret, signature string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL