Jul 25, 2008

Passwords - Passwords

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Passwords - Passwords

eskimmer
How should I hash passwords? Just use crypt? Use crypt with one of the other encryptions? Something else?

Reply

shadowx
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!

Reply

t3jem
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.

Reply

Codemaster Snake
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

Notice from rvalkass:

Any code you post must be placed in CODE tags.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : passwords, passwords

  1. Random Password Generator (updated With New Features)
    Program I Made For Passwords (10)
  2. Passwords That Should Never Be Used
    How to create strong passwords and hacksafe passwords (34)
    /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> QUOTE
    Strong passwords are your first step in securing your systems. If a password can be easily guessed
    or compromised using a simple dictionary attack, your systems will be vulnerable to hackers, worms,
    Trojans, and viruses. Trojan, virus, and worm authors have had great success attacking systems
    with weak and/or default passwords. Take IRC/Flood Trojan for example. McAfee’s virus profile
    states that IRC/Flood has over 120 variants and has infected over 60,000 machines in ....
  3. How To Delete Saved Passwords?
    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
    clicked "yes" on the window which asks if you want to save your password. I just pressed Enter and
    it took it as yes. Anyways becasue it a a Public Computer I dont want my password saved onto it. ohh
    yeah, I hate Inter Explorer and guess what they didnt have Firefox, so i ended up using IE. I dont
    know how to delete it, I tried Deleting Temp Internet Files, Cookies .. Every thing i thought off.
    Before i wasted 10credits changing my password I would like to know if there is....
  4. Passwords And Short Term Memory Problems!
    What was the password?!? (13)
    I hate making passwords, because now of all the hacking my default password is too "unsecure" to
    use. So I end up using one, that is simple, and then I forget it. It makes me really mad because
    thats what happened to my cpanel account, and now I dont remember the password to get in which sucks
    entirely, and then when you use up your ten credits, you find out what really was the password, and
    you hit yourself into multiple walls. because the password wasn;t the problem. It was that you were
    capitilizing the first letter of the login name GRRRR.....
  5. Encrypting passwords...
    (5)
    Hello... I was just wondering how do we do to crypt/decrypt passwords with php ? thanx a lot
    in advance....
  6. changing passwords
    (2)
    Hi. As i make out from other posts on the forum, the cpanel password can be changed. Being able
    to change a password would make sense, too /smile.gif' border='0' style='vertical-align:middle'
    alt='smile.gif' /> But i cant find the place to do it. Help would be appreciated.....
  7. Passwords
    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
    more passwords. In the beginning it was easy, and I could remember them all. But I was online more
    and I got more and more accounts and forgetting passwords or using the right password, but in the
    wrong place. So I started writing them down on a piece of paper. But then I realised that a paper
    wasn't very handy. So then I started using software to keep track of my passwords. I mainly
    started using software because I came across the website of the guy who made a free app....

    1. Looking for passwords, passwords

Searching Video's for passwords, passwords
advertisement



Passwords - Passwords



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
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