Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component

  

  Chilkat ActiveX Components

  Chilkat .NET Components

  Chilkat C++ Libraries

  

  

  

  

 

FAQ

MD5 Hash Text Tool   Back to Online Tools

This page should be viewed in Internet Explorer. It uses the Chilkat Crypt2 ActiveX component, which is a digitally signed and safe-for-scripting client-side component.

MD5 Test Vector

The Wikipedia entry for the MD5 algorithm provides a MD5 text vector for "The quick brown fox jumps over the lazy dog". The hash value (in hexidecimal format) is:

        9e107d9d372bb6826bd81d3542a419d6

You can verify that the Chilkat ActiveX computes the same value:

MD5 Hash this Text:

Javascript for MD5 Hash

<script type="text/javascript" language="javascript">

function md5Hash()
{
	document.crypt2.UnlockComponent("Anything goes here.");
	
	document.crypt2.Charset = "iso-8859-1";
	document.crypt2.HashAlgorithm = "md5";
	document.crypt2.EncodingMode = "hex";
	
	document.form1.etx.value = 
			document.crypt2.HashStringENC(document.form1.etx.value);
}

</script>

The crypt2.HashStringENC method computes a hash value for a text string. The text is first (internally) converted to the crypt2.Charset prior to computing the hash. In this case, the Charset is set to "iso-8859-1" indicating that we want to hash the 1-byte per character encoding of a typical Western-European language string. If it were set to "unicode" for example, it would hash a string containing 2 bytes/char Unicode (and thus arrive at a different hash value).

About the Chilkat ActiveX Components for Client-Side Javascript / AJAX

The Chilkat ActiveX components are packaged in digitally-signed .cab files to ensure integrity and authenticity. The components are safe-for-scripting. When a Chilkat ActiveX detects that it is running in a browser, all local filesystem read/write functionality is disabled.

More information about Chilkat ActiveX in Javascript

Crypt2 ActiveX Reference

Embedding ActiveX in HTML Reference

More Online Tools


Privacy Statement. Copyright 2000-2008 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, and Windows 95/98/NT4.

Downloads
.NET 2.0
.NET 1.*
.NET x64
VC++ 6.0
VC++ 7.0
VC++ 8.0
Java
Ruby
Perl 5.8.*
Perl 5.10.*
Python
Bounce ActiveX
Charset ActiveX
Email ActiveX
FTP2 ActiveX
Crypt ActiveX
HTML-to-XML ActiveX
HTTP ActiveX
IMAP ActiveX
MHT ActiveX
MIME ActiveX
RSA ActiveX
Socket ActiveX
Spider ActiveX (free)
String ActiveX (free)
Tar ActiveX
Upload ActiveX (free)
XML ActiveX (free)
XMP ActiveX
Zip ActiveX