PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 20th, 2002, 12:33 AM
mhoward mhoward is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 49 mhoward User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
md5 & Encryption

A couple of questions...

1. Once I have md5 'd a password, how do I un-md5 it to show me what the original password was?

2. What is the best method of encryption to use when working with databases?

Reply With Quote
  #2  
Old July 20th, 2002, 02:39 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: md5 & Encryption

md5 is one way. Once you md5 a password, you can't get the original back....

As for how to encrpyt in a database? md5 isn't bad. If it's passwords you are dealing with and you are using MySQL, check the password function for MySQL....


Reply With Quote
  #3  
Old July 20th, 2002, 07:07 AM
Taoism Taoism is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Winnipeg, MB, Canada
Posts: 81 Taoism User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 sec
Reputation Power: 2
RE: md5 & Encryption


Quote:
A couple of questions...

1. Once I have md5 'd a password, how do I un-md5 it to show me what the original password was?

2. What is the best method of encryption to use when working with databases?


As Matt indicated, md5() is a one-way hash... it generates a 32 character hash based on the input fed to it.

As for the best, I don't know that there is a 'best' way, but I certainly prefer md5() for passwords. It makes it look like gibberish to anyone who can look into the db.

I simply set up my programs to either allow a new password to be generated and emailed to the user if they forget their old one (good for internet apps), or have it such that an admin can manually generate a password for the user (good for intranet apps).

Cheers,
Keith.

Reply With Quote
  #4  
Old July 20th, 2002, 11:42 AM
D1NGO D1NGO is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 221 D1NGO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: md5 & Encryption

i had the same problem not long back, and someone gave ma good suggestion that worked:
md5 the password, and then when people go to use the password, md5 it again and see if it matches the one in the database

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > md5 & Encryption


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway