From 2212c81442fc12bcd2fb7ecd78fd8483793556a8 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Fri, 15 Jul 2011 21:50:18 -0600 Subject: [PATCH] Passwords are now hashed properly --- TShockAPI/Tools.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Tools.cs b/TShockAPI/Tools.cs index ec4b50af..da958b16 100755 --- a/TShockAPI/Tools.cs +++ b/TShockAPI/Tools.cs @@ -505,7 +505,7 @@ namespace TShockAPI return "nonexistent-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")); } }