CryptoSys API Library Manual

Example: Sha1.FileHexHash  Sha1.FileTextHexHash 

[VB6 equivalent: SHA1_FileHexHash]

Dim strDigest As String
Dim strFileName As String

strFileName = "hello.txt"
' Make sha1sum in text mode (treating CR-LF as single NL)
strDigest = Sha1.FileTextHexHash(strFileName)
Console.WriteLine("t " & " " & strDigest)
' Do in binary mode (treating CR-LF as two binary bytes)
strDigest = Sha1.FileHexHash(strFileName)
Console.WriteLine("b " & " " & strDigest)

See Also:
Sha1.FileHexHash Method
Sha1.FileTextHexHash Method

[Contents] [Index]

[HOME]   [NEXT: Example: Sha1.HexHash ...]

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