Click or drag to resize

CryptographyGetHash(String, HashAlgorithm) Method

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

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.0.8475.0
Syntax
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
ExceptionCondition
ArgumentNullExceptionThrown if hashingAlgorithm or rawText is null.
See Also