Documentation
¶
Index ¶
- Constants
- Variables
- func DecodeBasicAuth(auth string) (username, password string, ok bool)
- func EncodeBasicAuth(username, password string) string
- func NewPasshash(password string) (passhash, salt string, iter int)
- func Passhash(pw, salt []byte, iter int) []byte
- func PasswordMatches(password, passhash, salt string, iter int) (bool, error)
Constants ¶
View Source
const BasicPrefix = "Basic "
Variables ¶
View Source
var PasshashIter = 10000
As computing power grows, we should increase iter and salt bytes
View Source
var PasshashKeyBytes = 32
View Source
var PasshashSaltBytes = 8
Functions ¶
func DecodeBasicAuth ¶
func EncodeBasicAuth ¶
func NewPasshash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.