Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CurrentVersion of the Hasher used, if the versions do not match // the previous function is used and replaced by a // hash from the current Hasher. CurrentVersion int // CurrentHasher is the default Hasher to be used. CurrentHasher Hasher // Previous are used when the Password do not match the // CurrentVersion. Previous map[int]Hasher )
Functions ¶
Types ¶
type Bcrypt ¶
type Bcrypt struct { //If the cost given is 0 or less than bcrypt.MinCost then bcrypt.Default // will be used. Cost int }
Bcrypt implements a bcrypt Hasher
Click to show internal directories.
Click to hide internal directories.