bcrypt

package
v0.0.0-...-9665562 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 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