Passwords are now hashed properly

This commit is contained in:
Lucas Nicodemus 2011-07-15 21:50:18 -06:00
parent 741841028e
commit 2212c81442

View file

@ -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"));
}
}