Jump to content

hashing data in mysql table


jjk2

Recommended Posts

what is the safest way to encrypt/hash the datas on the mysql table

 

why dont everyone decide to encrypt the information on tables, such as ip, username, password, and so on?

 

if a hacker were to hack ing steal the table information, would he be able to read the contents of the mysql table data ? (all username, passwords are encrypted format so all he sees is 234jhl2k3as8979234)

 

thank you!

Link to comment
https://forums.phpfreaks.com/topic/107575-hashing-data-in-mysql-table/
Share on other sites

If one is able to get into your database you have more serious issues to consider then whether or not the data was encrypted or not as it's most likely your entire system was compromised. Focus on preventing attacks and exploits and the prospect of encrypting and hashing *all* the data becomes less and less desirable.

 

You're looking at the situation in a, "well they got in, how can I limit the damage done?" sense, when you should be saying "How can I stop them from getting in?"

The problem with hashing the username and ip etc, is that hashing is a one-way road, and cannot be unhashed. So hashed information basically becomes inaccessible. This is desirable with passwords, as a properly secure site will never display the password anywhere. However, there are many circumstances where you will need to be able to see the username and IP and email addresses etc, so hashing them would be a bad idea.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.