Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var Strategies = map[Algorithm]func(func() []byte) Strategy{ Argon2id: func(salt func() []byte) Strategy { s, _ := newArgon2Deriver(salt(), argon2.IDKey) return s }, ScryptBlake2b512: func(salt func() []byte) Strategy { s, _ := newScryptDeriver(func() hash.Hash { h, err := blake2b.New512(nil) if err != nil { panic(err.Error()) } return h }, salt()) return s }, Pbkdf2HmacSha512: func(salt func() []byte) Strategy { s, _ := newPbkdf2Deriver(sha512.New, salt(), pbkdf2Iterations, sha512.Size) return s }, }
Strategies defines available hashing strategies
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶ added in v0.1.0
type Algorithm uint8
Algorithm is the password hashing strategy code
Click to show internal directories.
Click to hide internal directories.