note 13650 added to ref.mcrypt.php

From: Date: Wed, 27 Jun 2001 03:05:35 +0000
Subject: note 13650 added to ref.mcrypt.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14685@lists.php.net to get a copy of this message
If you are trying to use mcrypt to encrypt and decrypt data for storing in cookies, then you should use bin2hex() before storing the data. If you use rawurlencode() instead, then Internet Explorer does something fishy with the cookie, and when you try and use mdecrypt on the cookie later, the decrypt fails part way through. http://www.php.net/manual/en/ref.mcrypt.php

« previous php.notes (#14685) next »