UtilHashingComputeHashOfStringT(String, Encoding) Method

Computes a hash for the specified string using the given hash algorithm.

Definition

Namespace: DevCase.Core.Security.Cryptography.Hashing
Assembly: 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,
	Encoding enc
)
where T : HashAlgorithm

Parameters

str  String
The string.
enc  Encoding
The character Encoding.

Type Parameters

T
The HashAlgorithm provider.

Return Value

String
An Hexadecimal representation of the resulting hash value.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also