note 23298 added to function.gmp-xor
| From: | mikko@php.net | Date: | Mon, 15 Jul 2002 06:33:13 +0000 |
| Subject: | note 23298 added to function.gmp-xor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33065@lists.php.net to get a copy of this message | ||
The logical XOR can be used for encrypting data. Use resource A as your original text and resource B
as the key. Be sure to use long enough key so that the key doesn't loop. Decryption works the
same way, input encrypted text as res A and key as res B.
--
http://www.php.net/manual/en/function.gmp-xor.php
http://master.php.net/manage/user-notes.php?action=edit+23298
http://master.php.net/manage/user-notes.php?action=delete+23298
http://master.php.net/manage/user-notes.php?action=reject+23298