bcrypt

package
v0.0.0-...-e525491 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCost = bcrypt.DefaultCost

DefaultCost is the default cost value used when creating new a password hash.

Variables

This section is empty.

Functions

func NewPasswordService

func NewPasswordService(cost int) (*passwordService, error)

NewPasswordService creates a new password service capable of generating and verifying bcrypt password hashes. The cost value controls the number of key expansion operations executed when creating a password hash as a power of 2.

Types

This section is empty.

Jump to

Keyboard shortcuts

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