Thread:
Hello, I want to know how to crypt a password. Which method is better in PHP. I should be able to decrypt it back as well. I used CRYPT_DES , its working.But I found that this is very basic method. I want to try, CRYPT_MD5 or CRYPT_BLOWFISH. I dont know, whether my sytem supports these. How to find out whether my system support these,. In case my system is not supporting these, how to make it availiable. Which method is the best for crypting the password. Thanking you. Regards, Arun Indian Institute Of Science Bangalore
There is a nice algorithm call RC4. Try looking for it on Google, might be of a help. Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -----Original Message----- From: pgsql-php-owner@postgresql.org [mailto:pgsql-php-owner@postgresql.org] On Behalf Of Arun k.v Sent: Monday, April 22, 2002 7:23 AM To: php-xml@yahoogroups.com Subject: [PHP] Hello, I want to know how to crypt a password. Which method is better in PHP. I should be able to decrypt it back as well. I used CRYPT_DES , its working.But I found that this is very basic method. I want to try, CRYPT_MD5 or CRYPT_BLOWFISH. I dont know, whether my sytem supports these. How to find out whether my system support these,. In case my system is not supporting these, how to make it availiable. Which method is the best for crypting the password. Thanking you. Regards, Arun Indian Institute Of Science Bangalore ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
Hi Sorry.But again i describe what i want.I want to receive(In php code because i want to use this value in sql statement.) value of the variable l2 Within script tag. <script> function ch(list) { var l2; l2=list.option.text; //i want to send the value of l2 in php file/code. } </script> <html> <select name="dd" onChange="ch(this);"> <option>dd</option> <option>www</option> <option>ww</option> <option>dsfd</option> </select> </html> If u have solution then send me as soon as possible.Also tell me is any method in php for event handle. dharm. _________________________________________________________ Click below to visit monsterindia.com and there is always a better job for you at http://monsterindia.rediff.com/jobs
on 6/15/02 4:37 AM, dharm_shankar@rediffmail.com purportedly said: > Hi > > Sorry.But again i describe what i want.I want to receive(In php > code because i want to use this value in sql statement.) value of > the variable l2 Within script tag. > > <script> > > function ch(list) > { > var l2; > l2=list.option.text; > //i want to send the value of l2 in php file/code. > } > </script> > > <html> > <select name="dd" onChange="ch(this);"> > <option>dd</option> > <option>www</option> > <option>ww</option> > <option>dsfd</option> > </select> > </html> > If u have solution then send me as soon as possible.Also tell me > is any method in php for event handle. > dharm. PHP is a server-side only scripting language, so JavaScript and PHP cannot interact except by making calls to the server. So you would either need to enclose the <SELECT> in a <FORM>, with onChange="submit();", or call submit() in ch(), or make a simple GET request: location.href='/url?dd=' + l2 in ch(). Keary Suska Esoteritech, Inc. "Leveraging Open Source for a better Internet"
> > Hi > > > > Sorry.But again i describe what i want.I want to receive(In php > > code because i want to use this value in sql statement.) value of > > the variable l2 Within script tag. > > > > <script> > > > > function ch(list) > > { > > var l2; > > l2=list.option.text; > > //i want to send the value of l2 in php file/code. > > } > > </script> > > > > <html> > > <select name="dd" OnChange="ch(this);"> > > <option>dd</option> > > <option>www</option> > > <option>ww</option> > > <option>dsfd</option> > > </select> > > </html> > > If u have solution then send me as soon as possible.Also tell me > > is any method in php for event handle. > > dharm. > >PHP is a server-side only scripting language, so JavaScript and PHP cannot >interact except by making calls to the server. So you would either need to >enclose the <SELECT> in a <FORM>, with OnChange="submit();", or call >submit() in ch(), or make a simple GET request: location.href='/url?dd=' + >l2 in ch(). > >Keary Suska >Esoteritech, Inc. >"Leveraging Open Source for a better Internet" and you also need a value for the options. like this: <option value="dd">dd</option> otherwise the form will return nothing. ----------------- Chris Smith http://www.squiz.net/