Hash .NET Component

The (freeware) Hash .NET Component uses industry-standard checksum algorithms to get a unique fingerprint of a file or string. This component is a must to prevent storing duplicate files in the database or to encrypt sensitive user data like passwords before storing them in the database. This component can be used in environments that support COM such as Active Server Pages (ASP), ASP.NET, Windows Scripting Host, Visual Basic, etc.

HashComponent 1.0

Description

This component uses industry-standard checksum algorithms to get a unique (*) fingerprint of a file or string.
This component is a must to prevent storing duplicate files in the database or to encrypt sensitive user data like passwords before storing them in the database.
This component can be used in environments that support COM such as Active Server Pages, Windows Scripting Host, Visual Basic, etc.

NOTE: At the time of writing this the CRC32, MD5 and SHA1 hash algorithms are considered compromised and thus are only provided to equipe a complete solution, use with caution!

Functions

This object has 15 public functions:

  • version() * returns the version number
  • help(<showPlainText>) * shows this help <showPlainText>(optional)
  • helpHtml() * shows this help as HTML markup
  • MD5(<String>) * Create a MD5 hash of the specified string
  • SHA1(<String>) * Create a SHA1 hash of the specified string
  • SHA256(<String>) * Create a SHA256 hash of the specified string
  • SHA384(<String>) * Create a SHA384 hash of the specified string
  • SHA512(<String>) * Create a SHA512 hash of the specified string
  • CRC32(<String>) * Create a CRC32 hash of the specified string
  • FileMD5(<FileName>) * Create a MD5 hash of the specified file
  • FileSHA1(<FileName>) * Create a SHA1 hash of the specified file
  • FileSHA256(<FileName>) * Create a SHA256 hash of the specified file
  • FileSHA384(<FileName>) * Create a SHA384 hash of the specified file
  • FileSHA512(<FileName>) * Create a SHA512 hash of the specified file
  • FileCRC32(<FileName>) * Create a CRC32 hash of the specified file

Usage example (VBScript)

Dim ObjHasher
Set ObjHasher = CreateObject("HashLibrary.Hash")
WScript.Echo("MD5 of "test" : " & ObjHasher.MD5("test") & "")
WScript.Echo("MD5 of file "test.zip" : " & ObjHasher.FileMD5("test.zip") & "")
Set ObjHasher = Nothing

Requirements

Microsoft .NET Framework 2.x

Compatibility

This Component is designed to run under both x86 and X64 processor architectures

Download Title:
Hash .NET Component
Download Description:
This is version 1.0 of the HashComponent
Download Count:
11 times
Filesize:
322.3 KB
MD5 hash:
94974ABC5B86BFA1E77D37678AB3DB47 Download

0 Comments
right_top

About this blog...

Archives

Previous Month (February) March 2009  Next Month (April)
SMTWTFS
1234567
891011121314
15161718192021
22232425262728
293031    

Poll