pwh

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(publicSalt []byte, cost int)

func Hash

func Hash(word []byte, salt []byte) []byte

func Match

func Match(word []byte, salt []byte, hash []byte) bool

Types

type PWHasher

type PWHasher struct {
	// contains filtered or unexported fields
}

func New

func New(publicSalt []byte, cost int) (pwh *PWHasher)

func (*PWHasher) Config

func (pwh *PWHasher) Config(publicSalt []byte, cost int)

func (*PWHasher) Hash

func (pwh *PWHasher) Hash(password []byte, salt []byte) []byte

func (*PWHasher) Match

func (pwh *PWHasher) Match(word []byte, salt []byte, hash []byte) bool

Jump to

Keyboard shortcuts

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