Chilkat HOME ASP Visual Basic VB.NET C# C C++ MFC Delphi FoxPro Java Perl Python Ruby SQL Server VBScript
MD4 Hash a StringMD4 hash a string.
<?php $crypt = new COM("Chilkat.Crypt2"); // Any string argument automatically begins the 30-day trial. $success = $crypt->UnlockComponent('30-day trial'); if ($success != true) { print $crypt->lastErrorText() . "\n"; exit; } $content = 'The quick brown fox jumps over the lazy dog'; // The desired output is a hexidecimal string: $crypt->EncodingMode = 'hex'; // Set the hash algorithm: $crypt->HashAlgorithm = 'md4'; $hashStr = $crypt->hashStringENC($content); print $hashStr . "\n"; // The output is: // 1BEE69A46BA811185C194762ABAEAE90 ?> |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.