signature

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(content string, secret string, algo Algo) ([]byte, error)

func SignURL

func SignURL(content string, secret string, algo Algo, length uint8) string

Types

type Algo

type Algo = string
const (
	SHA1   Algo = "sha1"
	SHA256 Algo = "sha256"
)

type Length

type Length = uint8
const (
	Short Length = 8
	Long  Length = 32
)

Jump to

Keyboard shortcuts

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