Fix formatting of old aglo block
Also spelled algorithms correctly
This commit is contained in:
parent
493dc0c069
commit
136064f4b2
1 changed files with 9 additions and 9 deletions
|
|
@ -462,17 +462,17 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A dictionary of hashing algortihms and an implementation object.
|
/// A dictionary of hashing algorithms and an implementation object.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected internal readonly Dictionary<string, Func<HashAlgorithm>> HashTypes = new Dictionary<string, Func<HashAlgorithm>>
|
protected internal readonly Dictionary<string, Func<HashAlgorithm>> HashTypes = new Dictionary<string, Func<HashAlgorithm>>
|
||||||
{
|
{
|
||||||
{"sha512", () => new SHA512Managed()},
|
{"sha512", () => new SHA512Managed()},
|
||||||
{"sha256", () => new SHA256Managed()},
|
{"sha256", () => new SHA256Managed()},
|
||||||
{"md5", () => new MD5Cng()},
|
{"md5", () => new MD5Cng()},
|
||||||
{"sha512-xp", () => SHA512.Create()},
|
{"sha512-xp", () => SHA512.Create()},
|
||||||
{"sha256-xp", () => SHA256.Create()},
|
{"sha256-xp", () => SHA256.Create()},
|
||||||
{"md5-xp", () => MD5.Create()},
|
{"md5-xp", () => MD5.Create()},
|
||||||
};
|
};
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a hashed string for a given string based on the config file's hash algo
|
/// Returns a hashed string for a given string based on the config file's hash algo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue