bcrypt

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashedPassword

type HashedPassword struct {
	Hashed string
}

func (HashedPassword) Equal

func (p HashedPassword) Equal(password string) bool

func (*HashedPassword) MustUpdate

func (p *HashedPassword) MustUpdate(password string, optionalCost ...int)

func (*HashedPassword) Scan

func (p *HashedPassword) Scan(src interface{}) error

func (HashedPassword) String

func (p HashedPassword) String() string

func (*HashedPassword) Update

func (p *HashedPassword) Update(password string, optionalCost ...int) error

func (HashedPassword) Value

func (p HashedPassword) Value() (driver.Value, error)

type Password

type Password struct {
	HashedPassword
	Password string `validate:"omitempty,gte=6,lte=72"`
}

func (Password) MarshalJSON

func (p Password) MarshalJSON() ([]byte, error)

func (*Password) MustUpdate

func (p *Password) MustUpdate(password string, optionalCost ...int)

func (*Password) Scan

func (p *Password) Scan(src interface{}) error

func (*Password) UnmarshalJSON

func (p *Password) UnmarshalJSON(t []byte) error

func (*Password) Update

func (p *Password) Update(password string, optionalCost ...int) error

Jump to

Keyboard shortcuts

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