Jump to content

Password Protection


BillyBoB

Recommended Posts

Would it be safer if you were to like instead of just using SHA1 to encrypt passwords for the database use SHA1 and cut 2 numbers off the back of the string and add the front two or somin like that?

 

Example:

c1887e2e345687458fbe665a6f7ab46adf64cbf4

turns into:

c1887e2e345687458fbe665a6f7ab46adf64cbc1

 

not much of a change so nobody could tell but the crackers could never get it...

Link to comment
Share on other sites

You should always apply a "salt" to your password hasing algorithym. Your idea is one such method, but typically people will use something a little more complex.

 

For instance if you have a column in the user table that won't change, such as joinDate, then you could use that as part of your salt. Take the password and concatenate the join date and then do an MD5 or SH1 hash (or both).

 

However, whatever you use is only good against making it difficult for someone to reverse engineer passwords if they gain access to the database. But, most such compromoses are internal in shich case the thief would also have access to your source files and could see the process you took to hash the passwords.

 

In my opinion, the best method of securing user's passwords is to create validation that requires the users to use strong passwords. A strong password, once hashed with something like MD5, would be near impossible to crack. However a weak password with MD5 hashing could be easily found with one of the many lookup tables with values for common words and combinations.

Link to comment
Share on other sites

md5 would be better choice, you can make different combination like sha1 then md5, or even 2 md5.

As for your first post, it would be fine all, as long as those cracker didn't know your combination.:)

 

Um you do know that SHA1 is the better encrypter out of SHA1 and MD5 right???

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.