Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultCost is the default cost for bcrypt.
DefaultCost = 10
)
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
Types ¶
type Bcrypt ¶
type Bcrypt struct {
// contains filtered or unexported fields
}
Bcrypt implements the Bcrypt hashing algorithm
func (*Bcrypt) HashWithSalt ¶
HashWithSalt implements the hash with salt method WARNING: Manually concatenating salt for Bcrypt is INSECURE as Bcrypt handles salt internally. This implementation is for framework consistency, but should be used with caution.
type Params ¶
type Params struct {
Cost int
}
func DefaultParams ¶
func DefaultParams() *Params
Click to show internal directories.
Click to hide internal directories.