secret

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LENGTH = 100
)

Variables

View Source
var (
	CHAR_SET = []byte("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.")
)

Functions

func Compare

func Compare(hash, secret string) error

func Hash

func Hash(secret []byte) ([]byte, error)

Types

type GeneratedSecret

type GeneratedSecret struct {
	Secret []byte
	Hash   []byte
}

func Generate

func Generate() (GeneratedSecret, error)

Jump to

Keyboard shortcuts

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