pwh

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(publicSalt string, complexity int)

func Hash

func Hash(word, salt string) string

func Match

func Match(word, salt, hash string) bool

func MatchX

func MatchX(word, salt, hash string, routines int) bool

Types

type PWHasher

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

func New

func New(publicSalt string, complexity int) (pwh *PWHasher)

func (*PWHasher) Config

func (pwh *PWHasher) Config(publicSalt string, complexity int)

func (*PWHasher) Hash

func (pwh *PWHasher) Hash(word, salt string) string

func (*PWHasher) Match

func (pwh *PWHasher) Match(word, salt, hash string) bool

func (*PWHasher) MatchX

func (pwh *PWHasher) MatchX(word, salt, hash string, routines int) bool

Jump to

Keyboard shortcuts

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