note 85154 added to language.operators.bitwise
| From: | Anonymous at osu1 dot php dot net | Date: | Mon, 18 Aug 2008 07:29:45 +0000 |
| Subject: | note 85154 added to language.operators.bitwise | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143579@lists.php.net to get a copy of this message | ||
@nikodrumer at gmail dot com
You could use XOR for cryptographic bases, but you should use the already implemented algorithms, if
able.
Encrypting an sensitive text using XOR can be done, and is safe if the length of the string is as
long as or shorter as the length of the key. In all other cases the text could be broken with a
polyalfabethic frequency analyse. In a short text this is rather difficult. But when the text is
rather large (for example, 20*length of your key), it's done quite easely. And an MD5
doesn't make it safer, in fact, it makes the length of the key fixed, so it even gets easier
for a potential analist/attacker to break the text.
Therefor, there is no actuall reason to use this, 'cause there are plenty of other algorithms
supplied, which are wáy safer.
----
Server IP: 83.137.20.135
Probable Submitter: 217.120.227.225
----
Manual Page -- http://www.php.net/manual/en/language.operators.bitwise.php
Edit -- https://master.php.net/note/edit/85154
Del: integrated -- https://master.php.net/note/delete/85154/integrated
Del: useless -- https://master.php.net/note/delete/85154/useless
Del: bad code -- https://master.php.net/note/delete/85154/bad+code
Del: spam -- https://master.php.net/note/delete/85154/spam
Del: non-english -- https://master.php.net/note/delete/85154/non-english
Del: in docs -- https://master.php.net/note/delete/85154/in+docs
Del: other reasons-- https://master.php.net/note/delete/85154
Reject -- https://master.php.net/note/reject/85154
Search -- https://master.php.net/manage/user-notes.php