Re: encryption decryption without mcrypt?
| From: | Dean Hall | Date: | Thu, 24 Aug 2000 20:09:38 +0000 |
| Subject: | Re: encryption decryption without mcrypt? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13514@lists.php.net to get a copy of this message | ||
> $onetimepad = OneTimePadCreate(strlen($secretkey));
> $key = OneTimePadEncrypt($secretkey, $onetimepad);
> session_register("onetimepad");
That's all fine and dandy if all you need is a one-time pad. But one-time
pads are only good once -- by definition, a one-time pad must be *truly*
random, the same exact length as the plaintext, and only used once. If it
doesn't meet any of these qualifications, it's not a one-time pad and is
*not* good for encryption.
But, if you do need a one-time pad, it's unbreakable. :-) Really!
Dean.