[thelist] cryptic question
Oliver Lineham
oliver at lineham.co.nz
Mon Oct 2 21:46:35 CDT 2000
At 21:07 2/10/00 -0500, you wrote:
>$encryptedString = crypt("100", "this will never be guessed");
>this way, to guess the number you must know what the 'salt' is, making
>almost impossible to break it with brute force.
when i played with it a while back, PHP's crypt() only used the first
character of the salt string (in this case 't'), giving just 256 possible
salts. this was PHP3 though.
</ol>
____________________________________________________
v i b e m e d i a http://www.vibe.co.nz/
po box 10-492 wellington, new zealand
phone +64 21 210-7845 oliver at lineham.co.nz
More information about the thelist
mailing list