Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Comments for: ian_gilfillan20050707

Message # 1029472:
Date: 07/15/05 01:42
By: Mohamad Hawi
Subject: RE: Encrypt In PHP

$password = crypt("My1sTpassword"); # let salt be generated

# You should pass the entire results of crypt() as the salt for comparing a
# password, to avoid problems when different hashing algorithms are used. (As
# it says above, standard DES-based password hashing uses a 2-character salt,
# but MD5-based hashing uses 12.)
if (crypt($user_input,$password) == $password) {
echo "Password verified!";
}

Previous Message | Next Message


Comments:
.htaccessacer08/04/05 08:28
web treesirquits07/27/05 14:09
PHP programmerdhancyber07/24/05 23:41
database with phpbilyamin07/23/05 12:17
Secure In PHPPhan Duy Trinh07/18/05 00:03
RE: Encrypt In PHPMohamad Hawi07/15/05 01:42
Encrypt In PHPRomeo07/11/05 07:54
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.