security

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesHashMatch

func DoesHashMatch(password string, hash string) bool

DoesHashMatch checks whether a given password and hash match

func GenerateToken

func GenerateToken(length uint8) (string, error)

GenerateToken generates a random string with a given length.

func HashString

func HashString(password string) (string, error)

HashString returns the bcrypt hash for a 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