RE: [PHP] Re: crypt()

2004-08-30 Thread Stefan Holmes
Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: crypt() > > On Thu, 2004-08-26 at 15:01, Aaron Todd wrote: > > Thanks for the tip, it worked great, however everything I have been > reading > > says that md5 is only one way. The way I have setup my app is the > database

[PHP] Re: crypt()

2004-08-27 Thread Jasper Howard
good to know -- -->> Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ <<-- "M. Sokolewicz" <[EMAIL PROTECTED]> wrote in message news

[PHP] Re: crypt()

2004-08-27 Thread M. Sokolewicz
Jasper Howard wrote: you can use md5() which will create an encrypted string that's not entirely true, all it will do is compute the md5-hash of that string. Which is *always* a 32-character hexadecimal number (though before PHP5.0.0 it was returned in a different way). The big difference betwee

[PHP] Re: crypt()

2004-08-27 Thread Jasper Howard
you can use md5() which will create an encrypted string that cannot be encrypted, or you can use something like base64_encode() which has the inverse base64_decode, that way you have an encrypted string in the database but if for example a user loses their password, instead of setting a new one, yo

Re: [PHP] Re: crypt()

2004-08-26 Thread Ian Firla
On Thu, 2004-08-26 at 15:01, Aaron Todd wrote: > Thanks for the tip, it worked great, however everything I have been reading > says that md5 is only one way. The way I have setup my app is the database > contains the encrypted version of what the user entered as their password. > Then on my log

[PHP] Re: crypt()

2004-08-26 Thread Aaron Todd
Thanks for the tip, it worked great, however everything I have been reading says that md5 is only one way. The way I have setup my app is the database contains the encrypted version of what the user entered as their password. Then on my login page there is an if statement that encrypts what the

[PHP] Re: crypt()

2004-08-26 Thread Torsten Roehr
"Aaron Todd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have developed a PHP based site that requires users to login. Their login > information is kept in a MYSQL database. Currently, I am using an IF > statement to verify what the user enters as their password with what is i

[PHP] Re: crypt()

2003-02-13 Thread SLanger
Hello 'salt' basically is the initialization sequence for the encryption. This makes the function use more random numbers since the salt will be different on different calls. At least it should be So in order for your crypt() to work you have to pass the same salt to both functions. To de