note 51238 added to function.mdecrypt-generic

From: Date: Thu, 24 Mar 2005 11:15:58 +0000
Subject: note 51238 added to function.mdecrypt-generic
Groups: php.notes 
Request: Send a blank email to php-notes+get-86879@lists.php.net to get a copy of this message
I have noticed that sometimes when the binary ciphertext is longer than the plaintext, the decrypted plaintext can have some little boxes/squares next to it as 'padding'. I also noticed that you can't cut and paste them to be able to edit them out, but i did find a solution. Just call rtrim() around the string and it removes them. ---- Manual Page -- http://www.php.net/manual/en/function.mdecrypt-generic.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51238 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51238&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51238&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51238&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51238&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51238&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51238&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86879) next »