CryptoSys API Library Manual

Example: Sha1.FileHexHash  Sha1.FileTextHexHash 

[VB6 equivalent: SHA1_FileHexHash]

Dim strDigest As String
Dim strFileName As String

strFileName = "hello.txt"
' Set strDigest to be 40 chars
' 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]

[PREV: Example: Sha1.BytesHash ...]   [Contents]   [Index]   
   [NEXT: Example: Sha1.HexHash ...]

Copyright © 2001-23 D.I. Management Services Pty Ltd. All rights reserved. Generated 2023-05-20T13:01:10Z.