bcrypt

package
v0.0.0-...-b3f0c1d Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHashAndSTR

func CompareHashAndSTR(hashed string, str string) error

func Generate

func Generate(str string, cost Cost) (string, error)

Types

type Cost

type Cost int
const (
	MinCost     Cost = 4  // the minimum allowable cost as passed in to GenerateFromPassword
	MaxCost     Cost = 31 // the maximum allowable cost as passed in to GenerateFromPassword
	DefaultCost Cost = 10 // the cost that will actually be set if a cost below MinCost is passed into GenerateFromPassword
)

Jump to

Keyboard shortcuts

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