note 85154 deleted from language.operators.bitwise by danielc

From: Date: Mon, 13 Apr 2009 16:16:17 +0000
Subject: note 85154 deleted from language.operators.bitwise by danielc
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153184@lists.php.net to get a copy of this message
Note Submitter: Anonymous Reason: 1 ---- @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.

« previous php.notes (#153184) next »