Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToAlgorithmName()

static string Internal.Cryptography.HashAlgorithmNames.ToAlgorithmName ( this HashAlgorithm hashAlgorithm)
inlinestatic

Definition at line 11 of file HashAlgorithmNames.cs.

12 {
13 if (hashAlgorithm is SHA1)
14 {
15 return "SHA1";
16 }
17 if (hashAlgorithm is SHA256)
18 {
19 return "SHA256";
20 }
21 if (hashAlgorithm is SHA384)
22 {
23 return "SHA384";
24 }
25 if (hashAlgorithm is SHA512)
26 {
27 return "SHA512";
28 }
29 if (hashAlgorithm is MD5)
30 {
31 return "MD5";
32 }
33 return hashAlgorithm.ToString();
34 }