update scrypt key size
This commit is contained in:
parent
3d5fce5c44
commit
c6e109e99f
|
@ -32,7 +32,7 @@ type Login struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func derive(password string, salt []byte) ([]byte, error) {
|
func derive(password string, salt []byte) ([]byte, error) {
|
||||||
return scrypt.Key([]byte(password), salt, scryptN, scryptR, scryptP, 30)
|
return scrypt.Key([]byte(password), salt, scryptN, scryptR, scryptP, 32)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *User) Check(login *Login) bool {
|
func (u *User) Check(login *Login) bool {
|
||||||
|
|
Loading…
Reference in New Issue