update scrypt key size

This commit is contained in:
Kyle Isom 2025-06-06 08:49:18 -07:00
parent 3d5fce5c44
commit c6e109e99f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {