Fix formatting of old aglo block

Also spelled algorithms correctly
This commit is contained in:
Lucas Nicodemus 2015-04-13 14:57:24 -06:00
parent 493dc0c069
commit 136064f4b2

View file

@ -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