Storing user passwords

Discussion in 'Databases' started by drew22299, Nov 8, 2008.

  1. #1
    Hi,

    If you're storing user password should you always md5 them? Is it legal to store the password as it was entered by the user?
     
    drew22299, Nov 8, 2008 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    It's generally not a good idea to store them unencrypted or un-hashed. As far as legality goes, it could be illegal if the passwords were being used as authentication for sensitive or financial information.

    In reality, it's a trust issue. If someone gained access to all of the password in a database, they probably have all the access that they need already. Administrators generally shouldn't have access to other people's passwords, because there's no reason to. The only person that should ever know a users password is that user.
     
    jestep, Nov 8, 2008 IP
  3. drew22299

    drew22299 Guest

    Messages:
    76
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your reply. I think I will store encrypted passwords and just ask them to change their password if they forget it lol
     
    drew22299, Nov 9, 2008 IP
  4. chisara

    chisara Peon

    Messages:
    141
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    To put more strength in the md5 hashing use a different salt for every user and store this with the useracount, otherwise rainbow table could be used to reverse engineer the passwords used when someone has read acces to this table.

    Use a search engine to find out more about md5 and salt
     
    chisara, Nov 13, 2008 IP