passwordhash

package
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PasswordHasher

type PasswordHasher interface {
	CreateHash(password, salt []byte) ([]byte, error)
	MakeSalt() (salt []byte, err error)
}

PasswordHasher generates password hash.

type PasswordHasherImpl

type PasswordHasherImpl struct{}

func NewPasswordHasherImpl

func NewPasswordHasherImpl() *PasswordHasherImpl

NewPasswordHasherImpl is a constructor.

func (PasswordHasherImpl) CreateHash

func (p PasswordHasherImpl) CreateHash(password, salt []byte) ([]byte, error)

CreateHash generates password hash.

func (PasswordHasherImpl) MakeSalt

func (p PasswordHasherImpl) MakeSalt() (salt []byte, err error)

MakeSalt generates salt.

Jump to

Keyboard shortcuts

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