|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-08-15 03:25 UTC] sniper@php.net
[2001-08-18 21:54 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
problem with the randomic generation of salt when a use $string = crypt("11lei11lao11") it allways generates a salt ( the first 2 chars from encrypted string ) that if use crypt("11lei11lao11blablabla") would work, and also crypt("11lei11lao11anythingwouldworkhere"). the code is $cryptedpass = crypt("11lei11lao11"); if (crypt ( "11lei11lao11anythingwouldworkhere", substr ( $cryptedpass, 0, 2)) == $cryptedpass) { echo "this is extremely strange for me"; } and this works with this pass but not whit others!!!!!!!!!!!!!!!!!