note 106154 deleted from function.gmp-xor by danbrown

From: Date: Fri, 14 Oct 2011 14:03:20 +0000
Subject: note 106154 deleted from function.gmp-xor by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-183882@lists.php.net to get a copy of this message
Note Submitter: phantomgamer at cox dot net ---- 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

« previous php.notes (#183882) next »