hash

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: BSD-3-Clause Imports: 3 Imported by: 2

README

Hash and Password helper

Helper for hashing and password.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(in []byte) uint64

Bytes hashes the given byte slice.

func PasswordCheck

func PasswordCheck(password string, hashedPassword string) error

PasswordCheck checks if the provided password is correct or not

func PasswordEncrypt

func PasswordEncrypt(password string, cost int) (string, error)

PasswordEncrypt returns the bcrypt hash of the password

func String

func String(in string) uint64

String hashes the given string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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