note 111149 deleted from function.mcrypt-cbc by aharvey

From: Date: Mon, 21 Jan 2013 01:27:45 +0000
Subject: note 111149 deleted from function.mcrypt-cbc by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193283@lists.php.net to get a copy of this message
Note Submitter: mkh at somedomain dot com ---- why not simply decry-pt it with simple php like function decrypt($encryptedText, $passphrase, $iv) { $enc = mcrypt_decrypt(MCRYPT_BLOWFISH, $passphrase, base64_decode($encryptedText), MCRYPT_MODE_cbc, $iv); return $enc; } however, you do need to watch out for block sizes. Lookup the blocksize in somewhere. MCRYPT_BLOWFISH block size or an algorithm you use which will fit in $iv above// I personally won't rely on the current cipher as it produced pretty buggy results with pass phrases.

« previous php.notes (#193283) next »