Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
ToAlgorithmName()
static
string
Internal.Cryptography.HashAlgorithmNames.ToAlgorithmName
(
this
HashAlgorithm
hashAlgorithm
)
inline
static
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
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Security.Cryptography.MD5
Definition
MD5.cs:9
System.Security.Cryptography.SHA1
Definition
SHA1.cs:7
System.Security.Cryptography.SHA256
Definition
SHA256.cs:7
System.Security.Cryptography.SHA384
Definition
SHA384.cs:7
System.Security.Cryptography.SHA512
Definition
SHA512.cs:7
Internal
Cryptography
HashAlgorithmNames
Generated by
1.10.0