crypto

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a []byte, b []byte) bool

func HMAC

func HMAC(key string, data string) string

func HMACBytes

func HMACBytes(key []byte, data []byte) []byte

func RandomBytes

func RandomBytes(n int) ([]byte, error)

func RandomToken

func RandomToken(length int) (string, error)

func SHA256

func SHA256(data string) string

func SHA256Bytes

func SHA256Bytes(data []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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