note 77786 added to function.mcrypt-create-iv

From: Date: Thu, 13 Sep 2007 00:35:55 +0000
Subject: note 77786 added to function.mcrypt-create-iv
Groups: php.notes 
Request: Send a blank email to php-notes+get-130444@lists.php.net to get a copy of this message
I am currently working on encryption project. And I have noticed some interesting facts about using these 2 functions. $encrypted_value = mcrypt_encrypt(parameters,..,$original_value,..,$iv_1); $decrypted_value = mcrypt_decrypt($parameters..,$iv_2); if $iv_1 and $iv_2 are different, you tend to get 2 different value. Moreover if $iv_1 = $iv_2 but $iv_1 could not be read or copied to the text editor like NotePad or Words, even $iv_1=$iv_2 , $decrypted_value will be different than $original_value. What I mean by $iv_1 = $iv_2 is when I display them on the browser, they look identical, but when I try to copy one of them to notepad, some part of the data won't display. Any idea how I can solve this problem? ---- Server IP: 216.235.15.211 Probable Submitter: 207.188.65.237 ---- Manual Page -- http://www.php.net/manual/en/function.mcrypt-create-iv.php Edit -- https://master.php.net/note/edit/77786 Del: integrated -- https://master.php.net/note/delete/77786/integrated Del: useless -- https://master.php.net/note/delete/77786/useless Del: bad code -- https://master.php.net/note/delete/77786/bad+code Del: spam -- https://master.php.net/note/delete/77786/spam Del: non-english -- https://master.php.net/note/delete/77786/non-english Del: in docs -- https://master.php.net/note/delete/77786/in+docs Del: other reasons-- https://master.php.net/note/delete/77786 Reject -- https://master.php.net/note/reject/77786 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130444) next »