secret

package
v0.0.0-...-fd00b2c Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DaypassLength = 16
	SongLength    = 24
	MinLength     = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret interface {
	Equal(secret string, salt []byte) bool
	Get(salt []byte) (secret string)
}

func NewSecret

func NewSecret(length int) (Secret, error)

func NewSecretWithKey

func NewSecretWithKey(length int, key []byte) Secret

Jump to

Keyboard shortcuts

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