scrypt

package
v0.0.0-...-2f21ade Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultN      = 32768
	DefaultR      = 8
	DefaultP      = 1
	DefaultKeyLen = 32
	SaltLen       = 8
)

Variables

View Source
var (
	Encoding   = base64.RawURLEncoding
	HashPrefix = []byte{'$', '1', 's'}
)

Functions

This section is empty.

Types

type Scrypt

type Scrypt struct {
}

func (*Scrypt) CompareSalted

func (s *Scrypt) CompareSalted(passwordHash, password, salt []byte) error

func (*Scrypt) HashWithSalt

func (s *Scrypt) HashWithSalt(password, salt []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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