Documentation ¶
Index ¶
- Constants
- Variables
- func Hash(password string, salt ...string) (ps string, err error)
- func HashBytes(password []byte, salt ...[]byte) (hash []byte, err error)
- func Match(password, hash string) bool
- func MatchBytes(password []byte, hash []byte) bool
- func Salt(rounds ...int) (string, error)
- func SaltBytes(rounds ...int) (salt []byte, err error)
Constants ¶
View Source
const ( MaxRounds = 31 MinRounds = 4 DefaultRounds = 12 SaltLen = 16 BlowfishRounds = 16 )
Variables ¶
View Source
var ( InvalidRounds = errors.New("bcrypt: Invalid rounds parameter") InvalidSalt = errors.New("bcrypt: Invalid salt supplied") )
Functions ¶
func MatchBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.