note 22208 deleted from function.crypt by aidan

From: Date: Mon, 05 Jul 2004 10:25:23 +0000
Subject: note 22208 deleted from function.crypt by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72575@lists.php.net to get a copy of this message
Note Submitter: cmaxwell@themanor.net ---- If you are trying to use the BLOWFISH method, the seed needs to be base64 encoded, but with a twist: blowfish uses a slightly modified base64 table (breaking the RFC). Since this is a seed, transposition of data shouldn't be a big issue, but: "+" needs to be replaced with "." otherwise your seed will stop at the "+" ... possibly creating a seed with entropy as low as ZERO! $base64salt = base64_encode($randomdata); $bf_safe_salt = str_replace("+", ".", $base64salt);

« previous php.notes (#72575) next »