The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other [Solved] Validate Passwords

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #30102

    I’m in the middle af creating a validation script and I got the the password bit and I have no idea what to allow. My password always get a low rating as i only use letters, but I’m aware that others have much more complex ones. So what characters should i allow?

    Also, whats the best way to store a password in a mysql db? I have always used md5 which converts it to a 32 bit string, but then what happens if the password is more than 32 characters? I think the other way was called salt or something but i don’t know.

    Many Thanks


    Most that I’ve seen go something like this:

    Minimum 7 characters, at least 1 uppercase and 1 number.


    Yes, save the MD5 of the password in the DB. It does not matter the length of the password as the MD5 hash is always be a 128bit value.

    A salt is basically just a hard-coded string that is appended to the password before hashing.


Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Other’ is closed to new topics and replies.