note 57431 added to function.gmp-xor
| From: | kimcbrowne at hotmail dot com | Date: | Tue, 04 Oct 2005 02:48:23 +0000 |
| Subject: | note 57431 added to function.gmp-xor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96326@lists.php.net to get a copy of this message | ||
To be unbreakable XOR encryption must have a key that is totally random and is never re-used. If
you use a key a second time, it can be broken. This can be confirmed by reading the page at http://en.wikipedia.org/wiki/One-time_pad.
Although I am not an expert on cryptography, I understand that decyphering involves recognizing
patterns and that it would be possible to decrypt code that was encoded using XOR with the same key
if there were enough samples to examine. Maintaining unique keys for each encryption at both
encryption and decryption points to ensure 100 percent unbreakability has security problems of its
own - where and how are the keys stored and how are they transmitted to the decryption points?
----
Manual Page -- http://www.php.net/manual/en/function.gmp-xor.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57431
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57431&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57431&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57431&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57431&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57431&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57431&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57431&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57431&report=yes
Search -- http://master.php.net/manage/user-notes.php