update scrypt key size
This commit is contained in:
@@ -32,7 +32,7 @@ type Login struct {
|
||||
}
|
||||
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user