CryptoSys API Library Manual

Hash.HexFromTextFile Method

Creates hash digest 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
Hash algorithm to be used

Return Value

Message digest in hex format

Remarks

Use for passing message digest of file between Unix and Windows systems.

[Contents] [Index]

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

Copyright © 2001-11 D.I. Management Services Pty Ltd. All rights reserved.