utils

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Nonce

func Nonce(size int) (string, error)

Nonce returns a random nonce of the given size encoded as hex.

func Signature

func Signature(secret string, parts ...string) string

Signature returns a signature for the given parts.

func VerifySignature

func VerifySignature(signature, secret string, parts ...string) bool

VerifySignature verifies if signature matches the signature of parts with secret.

Types

This section is empty.

Jump to

Keyboard shortcuts

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