Passwords are now hashed properly
This commit is contained in:
parent
741841028e
commit
2212c81442
1 changed files with 1 additions and 1 deletions
|
|
@ -505,7 +505,7 @@ namespace TShockAPI
|
||||||
return "nonexistent-password";
|
return "nonexistent-password";
|
||||||
}
|
}
|
||||||
var bytes = sha.ComputeHash(Encoding.ASCII.GetBytes(password));
|
var bytes = sha.ComputeHash(Encoding.ASCII.GetBytes(password));
|
||||||
return bytes.Aggregate("", (s, b) => s + b.ToString("height"));
|
return bytes.Aggregate("", (s, b) => s + b.ToString("X2"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue