note 11992 added to function.md5.php

From: Date: Fri, 16 Mar 2001 21:32:33 +0000
Subject: note 11992 added to function.md5.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12479@lists.php.net to get a copy of this message
How the R-MD5 above works: This algorithm is basically a two-level XOR. The encrypt function XORs the plaintext with a random number. This random number is embedded in the output (to save it) by alterating its chars with the XOR output. This is passed to keyED(), which XORs it with our text key. Decryption is, of course, basically the reverse and works on the principal that x XOR y XOR y = x. Remember that not all ascii values will display in a browser, so the $enc_text echo'd at bottom rarely shows $enc_text's entire value. MD5 is used to unclump bits into a smooth pur'ee rather than for encryption. http://www.php.net/manual/en/function.md5.php

« previous php.notes (#12479) next »