hash

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BcryptHasher added in v0.34.0

type BcryptHasher struct{}

BcryptHasher is an implementation of a users Hasher that use Bcrypt.

func (BcryptHasher) Check added in v0.34.0

func (hasher BcryptHasher) Check(hash, password string) bool

CheckHashPassword compares users hashed password and a raw password and returns if are the same or not.

func (BcryptHasher) Hash added in v0.34.0

func (hasher BcryptHasher) Hash(password string) string

Hash a password using bcrypt and returns the result.

Jump to

Keyboard shortcuts

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