Click or drag to resize

HashHexFromBits Method

Computes hash value in hex format from bit-oriented input

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public static string HexFromBits(
	byte[] data,
	int dataBitLen,
	HashAlgorithm hashAlg
)

Parameters

data  Byte
Bit-oriented message data in byte array
dataBitLen  Int32
Number of bits in data to digest
hashAlg  HashAlgorithm
Hash algorithm to be used (SHA-1, SHA-2, SHA-3 only)

Return Value

String
Message digest in hex-encoded format
Remarks
Only the SHA families of hash functions (SHA-1, SHA-2, SHA-3) are supported in bit-oriented mode
See Also