CryptoSys PKI Toolkit Manual

Hash.BytesFromFile Method

Creates hash digest of a binary file

Syntax

[C#]
public static byte[] BytesFromFile(
	string fileName,
	HashAlgorithm hashAlg
)
[VB.NET]
Public Shared Function BytesFromFile ( _
	fileName As String, _
	hashAlg As HashAlgorithm _
) As Byte()

Parameters

fileName
Name of file containing message data
hashAlg
Hash algorithm to be used

Return Value

Message digest in byte format

[Contents] [Index]


[HOME]   [NEXT: Hash.HexFromBytes Method...]

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