Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Fedor  
#1 Posted : Thursday, May 18, 2006 10:36:59 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,537

Thanks: 4 times
Was thanked: 56 time(s) in 55 post(s)
Aurigma HashGenerator is small ActiveX component for SHA1, MD2, and MD5 hash computing. Here is code snippet how to use it:
Code:
<%
Dim objHashGenerator
Set objHashGenerator = Server.CreateObject("Aurigma.HashGenerator") 

Dim strFileName 
strFileName = Server.MapPath("IMG_0001.jpg")

Dim strSHA
strSHA = objHashGenerator.GetShaFromFile(strFileName)

Response.Write strSHA

Dim strMD2
strMD2 = objHashGenerator.GetMD2FromFile(strFileName)

Response.Write strMD2

Dim strMD5
strMD5 = objHashGenerator.GetMD5FromFile(strFileName)

Response.Write strMD5
%>
The component is free and is released under BSD license. You can find binaries and source code in attachments. Note, you should register HashGenerator component from command line using regsvr32 utiltiy:
Code:
regsvr32 HashGenerator.dll
File Attachment(s):
HashGenerator.zip (19kb) downloaded 517 time(s).
HashGeneratorSrc.zip (30kb) downloaded 423 time(s).
Best regards, Fedor Skvortsov
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.