mhash() without mhash library?

From: Date: Wed, 28 Jun 2006 20:30:36 +0000
Subject: mhash() without mhash library?
Groups: php.general 
Request: Send a blank email to php-general+get-238843@lists.php.net to get a copy of this message
hi all, can anyone tell me if it might be possible to do an mhash() without actually having the mhash library installed? for various reasons it's very impracticle to have a compiled version of php running on our production servers and i'd really like to be able to use the alexa web services. here's the php snippet that wont work, just so you know what the aim is.. function make_sig ( $secret_access_key, $service, $operation, $timestamp) { $sig = $service . $operation . $timestamp; $hmac = mhash ( MHASH_SHA1, $sig, $secret_access_key ); $encoded_hmac = base64_encode ( $hmac ); return urlencode ( $encoded_hmac ); } any thoughts? -- Nick Wilson http://performancing.com/user/1

« previous php.general (#238843) next »