note 44035 deleted from function.md5 by tomsommer

From: Date: Tue, 13 Jul 2004 18:18:13 +0000
Subject: note 44035 deleted from function.md5 by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-73178@lists.php.net to get a copy of this message
Note Submitter: Eric P ---- You can use the MD5 function to calculate WEP keys from passphrases. <?php function passToKey($passphrase) { return substr(md5(substr(str_repeat($passphrase,64),0,64)),0,26); } print "WEP key: ".passToKey("password"); // will print 'WEP key: 2b204a3f1042643e480fdd655e' ?>

« previous php.notes (#73178) next »