note 106154 added to function.gmp-xor

From: Date: Fri, 14 Oct 2011 12:50:50 +0000
Subject: note 106154 added to function.gmp-xor
Groups: php.notes 
Request: Send a blank email to php-notes+get-183877@lists.php.net to get a copy of this message
I agree RND is not truely random but you can improve it quite a bit if you use the INT to retrieve the number of time the 18.2 times a second interrupt has occured since the computer was powered up as a SEED. You can even obscure this number more by XOR'n it against the file size and use the resulting number as the seed. Use a database (.DAT file for ACCESS) stored on a USB memory stick to store the resulting random key used on a specific file. Remember to never use the same random key on more than one file. The more files the key is used on provides clues as to the key. (ex: Xor one file against the other). To enhanse the XOR even more, compress the file (remove repeating patterns) from the file before it is encrypted. Lance ---- Server IP: 69.147.83.197 Probable Submitter: 72.222.139.213 ---- Manual Page -- http://www.php.net/manual/en/function.gmp-xor.php Edit -- https://master.php.net/note/edit/106154 Del: integrated -- https://master.php.net/note/delete/106154/integrated Del: useless -- https://master.php.net/note/delete/106154/useless Del: bad code -- https://master.php.net/note/delete/106154/bad+code Del: spam -- https://master.php.net/note/delete/106154/spam Del: non-english -- https://master.php.net/note/delete/106154/non-english Del: in docs -- https://master.php.net/note/delete/106154/in+docs Del: other reasons-- https://master.php.net/note/delete/106154 Reject -- https://master.php.net/note/reject/106154 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183877) next »