UtilHashingComputeHashOfStringT(String) Method
Computes a hash for the specified ASCII string using the given hash algorithm.
Namespace: DevCase.Core.Security.Cryptography.HashingAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string ComputeHashOfString<T>(
string str
)
where T : HashAlgorithm
Public Shared Function ComputeHashOfString(Of T As HashAlgorithm) (
str As String
) As String
Dim str As String
Dim returnValue As String
returnValue = UtilHashing.ComputeHashOfString(str)
public:
generic<typename T>
where T : HashAlgorithm
static String^ ComputeHashOfString(
String^ str
)
static member ComputeHashOfString :
str : string -> string when 'T : HashAlgorithm
No code example is currently available or this language may not be supported.
- str String
-
The string.
- T
-
The HashAlgorithm provider.
String
An Hexadecimal representation of the resulting hash value.
This is a code example.
No code example is currently available or this language may not be supported.
Dim md5 As String = ComputeHashOfString(Of MD5CryptoServiceProvider)("Hello World!")
Dim sha1 As String = ComputeHashOfString(Of SHA1CryptoServiceProvider)("Hello World!")
Dim sha256 As String = ComputeHashOfString(Of SHA256CryptoServiceProvider)("Hello World!")
Dim sha384 As String = ComputeHashOfString(Of SHA384CryptoServiceProvider)("Hello World!")
Dim sha512 As String = ComputeHashOfString(Of SHA512CryptoServiceProvider)("Hello World!")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.