note 44532 added to function.mcrypt-decrypt

From: Date: Mon, 09 Aug 2004 07:50:52 +0000
Subject: note 44532 added to function.mcrypt-decrypt
Groups: php.notes 
Request: Send a blank email to php-notes+get-74303@lists.php.net to get a copy of this message
How do you know if the mcrypt_decrypt worked successfully. I am using the Rijndael algorithm to encrypt/decrypt cookies. But even if I pass it the wrong key, it gives me some code. Is there a way to know if it worked successfully or not. Or should I just encode some sort of thing for me to recognize in the first few characters...like: "PHP|User=x|Timeout=x...." or something? Any recommendations? Alex ---- Manual Page -- http://www.php.net/manual/en/function.mcrypt-decrypt.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44532 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44532&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44532&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#74303) next »