Current location: Hot Scripts Forums » Other Discussions » Database » MD5 and importing data into new DB


MD5 and importing data into new DB

Reply
  #1 (permalink)  
Old 06-14-07, 11:58 AM
ELV1I2's Avatar
ELV1I2 ELV1I2 is offline
Newbie Coder
 
Join Date: Jun 2007
Location: BA
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb MD5 and importing data into new DB

Hi. Due to security reason I thought to write down into table passwords of user using MD5 or SHA-1 function for encryption. I'm not sure how these routine really working and have fear that once, in future, if I for example export whole DB to CD and on other computer install new MySQL DB and then import saved data of former DB, will it be "readable", including fields made using MD5? I presume that it shall working but never tried. Someone told me that each new installation of MySQL make some unique key that is used for generation data when MD5 or SHA-1 encryption is involved..? Is it true or not? Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-14-07, 02:33 PM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
MD5/SHA are one-way hashes. Once something has been passed through a one-way hash, the original value is not present (unless you kept and stored the original value yourself.)

Exporting the database won't show the original values.

The following is incorrect -
Quote:
Someone told me that each new installation of MySQL make some unique key that is used for generation data when MD5 or SHA-1 encryption is involved..?
MD5/SHA are algorithms. They don't use a unique key for anything.
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-14-07, 03:12 PM
ELV1I2's Avatar
ELV1I2 ELV1I2 is offline
Newbie Coder
 
Join Date: Jun 2007
Location: BA
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

Thanks a lot man, I feel now much better!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 08:59 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.