passwordhasher

package
v0.0.0-...-b1f0215 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bcrypt

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

func NewBcrypt

func NewBcrypt() *Bcrypt

func (*Bcrypt) CheckPassword

func (b *Bcrypt) CheckPassword(hashedPassword, password string) bool

func (*Bcrypt) ComparePassword

func (b *Bcrypt) ComparePassword(hashedPassword, password string) (bool, error)

func (*Bcrypt) HashPassword

func (b *Bcrypt) HashPassword(password string) (string, error)

type Identity

type Identity struct {
}

func (*Identity) CheckPassword

func (i *Identity) CheckPassword(hashedPassword, password string) bool

func (*Identity) ComparePassword

func (i *Identity) ComparePassword(hashedPassword, password string) (bool, error)

func (*Identity) HashPassword

func (i *Identity) HashPassword(password string) (string, error)

type Reverse

type Reverse struct {
}

func (*Reverse) CheckPassword

func (r *Reverse) CheckPassword(hashedPassword, password string) bool

func (*Reverse) ComparePassword

func (r *Reverse) ComparePassword(hashedPassword, password string) (bool, error)

func (*Reverse) HashPassword

func (r *Reverse) HashPassword(password string) (string, error)

Jump to

Keyboard shortcuts

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