Added support for sha256 and md5.

This commit is contained in:
high 2011-07-24 14:26:52 -04:00
parent 2c19e4467e
commit 7a829d347b
3 changed files with 46 additions and 15 deletions

View file

@ -99,6 +99,12 @@ namespace TShockAPI
public bool EnableBanOnUsernames = false;
public bool EnableAntiLag = true;
/// <summary>
/// Valid types are "sha512", "sha256", "md5"
/// </summary>
public string HashAlgorithm = "sha512";
public static ConfigFile Read(string path)
{
if (!File.Exists(path))