HashHexFromTextFile Method |
Create hash digest in hex format of a text file, treating CR-LF (0x13, 0x10) pairs as a single LF (0x10).
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static string HexFromTextFile(
string fileName,
HashAlgorithm hashAlg
)
Public Shared Function HexFromTextFile (
fileName As String,
hashAlg As HashAlgorithm
) As String
Parameters
- fileName String
- Name of file containing message data
- hashAlg HashAlgorithm
- Hash algorithm to be used
Return Value
StringMessage digest in hex format
RemarksThis should give the same message digest of a text file on both Unix and Windows systems.
See Also