note 111149 added to function.mcrypt-cbc

From: Date: Sun, 20 Jan 2013 10:50:19 +0000
Subject: note 111149 added to function.mcrypt-cbc
Groups: php.notes 
Request: Send a blank email to php-notes+get-193278@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.199 Probable Submitter: 65.49.68.169 ---- Manual Page -- http://php.net/manual/en/function.mcrypt-cbc.php Edit -- https://master.php.net/note/edit/111149 Del: integrated -- https://master.php.net/note/delete/111149/integrated Del: useless -- https://master.php.net/note/delete/111149/useless Del: bad code -- https://master.php.net/note/delete/111149/bad+code Del: spam -- https://master.php.net/note/delete/111149/spam Del: non-english -- https://master.php.net/note/delete/111149/non-english Del: in docs -- https://master.php.net/note/delete/111149/in+docs Del: other reasons-- https://master.php.net/note/delete/111149 Reject -- https://master.php.net/note/reject/111149 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193278) next »