CryptoSys PKI Pro Manual

Hash.BytesFromFile Method

Create hash digest of a binary file.

Syntax

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

Parameters

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

Return Value

Byte
Message digest in byte format

See Also

VB6/C equivalent: HASH_File

[Contents] [Index]

[PREV: Hash.BytesFromBytes Method...]   [Contents]   [Index]   
   [NEXT: Hash.Double Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.