CryptographyGetHash(String, HashAlgorithm) Method

Creates a hash of a string using a specified hashing algorithm.

Definition

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
C#
public static string GetHash(
	string rawText,
	HashAlgorithm hashingAlgorithm
)

Parameters

rawText  String
The string to hash.
hashingAlgorithm  HashAlgorithm
The hash provider to use.

Return Value

String
A String containing the hexadecimal hash.

Exceptions

ArgumentNullExceptionThrown if hashingAlgorithm or rawText is null.

See Also