note 106155 added to function.gmp-xor
| From: | phantomgamer at cox dot net | Date: | Fri, 14 Oct 2011 12:51:19 +0000 |
| Subject: | note 106155 added to function.gmp-xor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183878@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/106155
Del: integrated -- https://master.php.net/note/delete/106155/integrated
Del: useless -- https://master.php.net/note/delete/106155/useless
Del: bad code -- https://master.php.net/note/delete/106155/bad+code
Del: spam -- https://master.php.net/note/delete/106155/spam
Del: non-english -- https://master.php.net/note/delete/106155/non-english
Del: in docs -- https://master.php.net/note/delete/106155/in+docs
Del: other reasons-- https://master.php.net/note/delete/106155
Reject -- https://master.php.net/note/reject/106155
Search -- https://master.php.net/manage/user-notes.php