| | How should I hash passwords? Just use crypt? Use crypt with one of the other encryptions? Something else? |
|
|
Well using crypt wouldnt "hash" anything i would encrypt it as i understand.
I would usually use MD5 to has a password, the only thing is once hashed you cant see the original password, this doesnt matter really though as to validate the password you store the hashed version in a DB and then hash the users input so that if correct the two hashes would match exactly. That way even if the site is compromised by a hacker and they get access to the DB they still cant see the passwords either!
I would use MD5 too, I forget the php function that can actually hash a password to md5, but yea, it's an easy way to do it; however, it's not hard to find a program that will crack the hash if a hacker find the hashed password so don't make the hash easy to find.
Check out the following code:
CODE <?php $password = "PASSWORD"; // Any password $crypt = md5($password); // You will get a md5 hash of your supplied string /* * You can insert the data in to table and check with the entered password during login */ ?> md5() returns a 32 character long string which is always unique and same for the supplied argument. If you need more help the post
Similar Topics
Keywords : passwords, passwords
Program I Made For Passwords (10) Well I got bored last night during the 6 hour trip from New York to New Hampshire so I decided I How to create strong passwords and hacksafe passwords (34) /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> QUOTE When logging onto you CPanel. (1) Hey, the other day i went to this Internet Cafe. I logged into my Cpanel, while i was logging in i What was the password?!? (13) I hate making passwords, because now of all the hacking my default password is too "unsecure" to (5) Hello... I was just wondering how do we do to crypt/decrypt passwords with php ? thanx a lot (2) Hi. As i make out from other posts on the forum, the cpanel password can be changed. Being able How do you keep track of them (43) Well, I think it's mainly since I've been using the internet that I've gotten more and Looking for passwords, passwords
|
|
![]() Passwords - Passwords |
| ADD REPLY / Got an Opinion! | a humble request :-) | RAPID SEARCH! | Free Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute your information that might help someone here. Ask your Doubts & Queries to get answers.. "Together, We enlight each other!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|