hash

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 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

type BcryptHasher struct{}

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

func (BcryptHasher) Check

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

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