Programming Examples

ChilkatHOMEASPVisual BasicVB.NETC#CC++MFCDelphiFoxProJavaPerlPythonRubySQL ServerVBScript

PHP ActiveX Examples

Bounced Mail
Bz2
Certificates/Keys
Charset
CSV
DKIM / DomainKey
Diffie-Hellman
DSA
Email Object
Encryption
FileAccess
FTP
HTML Conversion
HTTP
IMAP
MHT / HTML Email
MIME
NTLM
POP3
RSA
SMTP
Socket
Spider
SSH Key
SSH
SSH Tunnel
SFTP
Tar
Upload
XML
Zip
Amazon S3


 

 

 

 

 

 

 

 

MD4 Hash a String

MD4 hash a string.

Download Chilkat Crypt ActiveX

<?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.