pbkdf2

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHashComponentUnreadable = errors.New("unchained/pbkdf2: unreadable component in hashed password")
	ErrHashComponentMismatch   = errors.New("unchained/pbkdf2: hashed password components mismatch")
	ErrAlgorithmMismatch       = errors.New("unchained/pbkdf2: algorithm mismatch")
)

Functions

This section is empty.

Types

type PBKDF2Hasher

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

func NewPBKDF2SHA1Hasher

func NewPBKDF2SHA1Hasher() *PBKDF2Hasher

func NewPBKDF2SHA256Hasher

func NewPBKDF2SHA256Hasher() *PBKDF2Hasher

func (*PBKDF2Hasher) Encode

func (h *PBKDF2Hasher) Encode(password string, salt string, iterations int) (string, error)

Encode encode raw password using PBKDF2 hasher.

func (*PBKDF2Hasher) Verify

func (h *PBKDF2Hasher) Verify(password string, encoded string) (bool, error)

Verify validate raw password using PBKDF2 hasher.

Jump to

Keyboard shortcuts

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