password

package
v0.0.0-...-85aba21 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BCryptPassword

type BCryptPassword struct {
	Password
	// contains filtered or unexported fields
}

func (*BCryptPassword) Compare

func (p *BCryptPassword) Compare(pswd string) error

func (*BCryptPassword) Digest

func (p *BCryptPassword) Digest() string

type Password

type Password interface {
	Digest() string
	Compare(string) error
}

func NewBCryptPassword

func NewBCryptPassword(pswd string, salt string) (Password, error)

func NewBCryptPasswordFromDigest

func NewBCryptPasswordFromDigest(digest string, salt string) (Password, error)

Jump to

Keyboard shortcuts

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