secret

package
v0.0.0-...-ca8de47 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 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

func NewKey

func NewKey(size int) ([]byte, error)

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