CryptoSys API Library Manual
Hash.HexFromTextFile Method
Computes hash value in hex format of a text file, treating CR-LF pairs as a single LF
Syntax
[C#]
public static string HexFromTextFile(
string fileName,
HashAlgorithm hashAlg
)
[VB.NET]
Public Shared Function HexFromTextFile ( _
fileName As String, _
hashAlg As HashAlgorithm _
) As String
Parameters
- fileName
- Name of file containing message data
- hashAlg
- Type: HashAlgorithm
Hash algorithm to be used (ASCON-HASH not supported in file mode)
Return Value
Message digest in hex format
Remarks
Use for passing message digest of file between Unix and Windows systems.
[Contents] [Index]