diff --git a/data/user.go b/data/user.go index 6f328fb..b5ea0d2 100644 --- a/data/user.go +++ b/data/user.go @@ -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 {