note 51235 deleted from ref.mcrypt by danbrown

From: Date: Mon, 13 Dec 2010 16:25:40 +0000
Subject: note 51235 deleted from ref.mcrypt by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-174863@lists.php.net to get a copy of this message
Note Submitter: IRLCoder ---- Re: Just a followup note about mcrypt<-->java interop (have a php app encrypting a string and a java app decrypting it - and vice-versa!) Sorry, the PHP had a bug and should have been the following: $dlen = strlen($data); $pad = 16 - fmod($dlen, 16); //change here if ($pad > 0) { $i = (int)$pad; while ($i > 0) { $data.=" "; $i--; } }

« previous php.notes (#174863) next »