CryptoSys PKI Toolkit Manual

Hash.HexFromTextFile Method

Creates hash digest in hex format of a text file, treating CR-LF (0x13 0x10) pairs as a single LF (0x10)

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

Return Value

Message digest in hex format

Remarks

This should give the same message digest of a text file on both Unix and Windows systems.

[Contents] [Index]

[HOME]   [NEXT: Hmac.BytesFromBytes Method...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.