note 10399 added to crypt

From: Date: Tue, 02 Jan 2001 00:30:17 +0000
Subject: note 10399 added to crypt
Groups: php.notes 
Request: Send a blank email to php-notes+get-9236@lists.php.net to get a copy of this message
'Got a little problem with the crypt() function. I'm still learning PHP for a project and need to use an encryption formula to crypt something. I use crypt() function to encode it and it works perfectly with the salt generator listed above, but I have a VERY big problem when I want to uncode it. It codes the code again... I'm totaly disapointed... Can someone give me an concrete example with crypt()??? Just crypt a string and uncrypt it directly... Maybe something like this : <?php $tocode="Here is something to code"; $coded = crypt($tocode); $decoded = crypt(??????????????); echo "To code : ".$tocode."<br>"; echo "Coded string : ".$coded."<br>"; echo "Uncrypted coded string : ".$decoded; ?> Just fill the ?????... Thanks. Min's http://www.php.net/manual/fr/function.crypt.php

« previous php.notes (#9236) next »