Added support for sha256 and md5.
This commit is contained in:
parent
2c19e4467e
commit
7a829d347b
3 changed files with 46 additions and 15 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue