| | |||||
| ||||||||
| Webmaster Tutorials Instructional webmaster-related how-to's and tutorials. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Sep 2005 Location: At Home
Posts: 881
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Md5() MD5, a hash encrytion of texts. although it is supposed to be uncovertable it can be converted back recently. it is a very easy function to use but uesed a lot in sending encrypted data and storing it, like this forum it uses it to store passwords. this is how it works: PHP Code: ????: NamePros.com http://www.namepros.com/webmaster-tutorials/173486-md5.html PHP Code: hope that helps.
__________________ |
| |
| | #2 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | A better sollution is sh1 it works exactly the same as md5 except you replace md5 with sh1. Combine this with ROT13 and salt and you have secure encryption
__________________ Disney World Fans - Mobile Apps for your WDW Vacation! WSDReg - Affordable Domain Registration. Serving NP members since 2006! Hotel Site Script - 15% Discount for NP members with code 'NPROS' |
| |
| | #4 (permalink) |
| Senior Member Join Date: Apr 2006
Posts: 1,345
![]() ![]() ![]() ![]() ![]() ![]() | The only things I can think of that would require MD5() are for logins. For that you need a database, MySQL goes well with PHP. An example I found on the net can be found here. I haven't tried it out yet, but I intend to later on just to see how it works. It requires MySQL. Judging by reading the summary, it MD5's on the clientside and macthes it up on the serverside instead of sending a plain-text password as it were... I'm confused now! Bah, i'll find an easier example that's easy to get! |
| |
| | #7 (permalink) |
| NamePros Regular Join Date: Feb 2006 Location: Atlanta, GA, USA
Posts: 335
![]() ![]() | ROT13 advances letters thirteen characters. a = n b = o c = p etc, etc. More on MD5 Too much about MD5 |
| |
| | #8 (permalink) | ||||
| Tech Support Join Date: Mar 2005
Posts: 4,944
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ????: NamePros.com http://www.namepros.com/showthread.php?t=173486 www.php.net/sha1 | ||||
| |
| | #9 (permalink) | ||||
| NamePros Regular Join Date: Nov 2005 Location: Auckland, New Zealand
Posts: 283
![]() ![]() ![]() |
__________________ Ramblings: Twitter | Blog: Domaining .NZ | Sales: Hot Domains | Portfolio: Rare Domains | ||||
| |
| | #11 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | *a little bumpy update* SHA1: PHP Code: For extra security: PHP Code:
__________________ Disney World Fans - Mobile Apps for your WDW Vacation! WSDReg - Affordable Domain Registration. Serving NP members since 2006! Hotel Site Script - 15% Discount for NP members with code 'NPROS' |
| |
| | #12 (permalink) | ||||||||
| NamePros Member Join Date: Aug 2005 Location: Essex, UK
Posts: 139
![]() ![]() |
Any encryption is prone to dictionary attacks if you don't include a salt. An MD5 encryption with a salt will be more than enough for many sites out there although if you are serious about security I would recommend hashing with SHA256 or even SHA512 and including a pre-set SALT that only you know and a random SALT which will be stored in the database with the password. That way even if a user gets the hashed password and the SALT they still cannot use a dictionary attack as they do not have the secret salt that only you know.
Unfortunately the password's will still be sent in plaintext from the client to the server, this is where SSL certificates are needed. I have also heard, might not be completely true but if you hash an already hashed string it increases the chance of collisions. Don't ask me how though ![]() ????: NamePros.com http://www.namepros.com/showthread.php?t=173486 Hope that all made sense
__________________ Chesterton Web Development Professional Web Development and Design Services | ||||||||
| |
| | #13 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Actualy, MD5 can be decrypted...it has only recently been found out though. I wont post code up here that will prove this as i wouldnt want to create security problems for anyone, however i can assure you - MD5 is very decryptable...i have been able to decrypt upto 10 chars so far, and im sure others have got furthur. I would appreciate it if people stopped PMing me asking for the code...regardless of your reasoning, i would prefer not to release it. You can find it the same way i did...www.google.com
__________________ Disney World Fans - Mobile Apps for your WDW Vacation! WSDReg - Affordable Domain Registration. Serving NP members since 2006! Hotel Site Script - 15% Discount for NP members with code 'NPROS' |
| |
| | #15 (permalink) | ||||
| Account Suspended Join Date: Oct 2005 Location: United Kingdom
Posts: 1,554
![]() ![]() ![]() ![]() |
| ||||
| |
| | #17 (permalink) |
| NamePros Member Join Date: Aug 2005 Location: Essex, UK
Posts: 139
![]() ![]() | Well please provide a link then. It is impossible to decrypt a hash, there is a difference between encryption and hashing. I'm guessing the site these people are referring to is http://www.md5decrypt.com/, try it with a string you have hashed and funnily enough it throws up an error, good isn't it! That site can only decrypt strings you have put into it, obviously it keeps a database of all strings entered and then tries to find a match. When will you people learn that it's impossible to decrypt a proper md5 hash. It takes supercomputers weeks just to find a collision.
__________________ Chesterton Web Development Professional Web Development and Design Services |
| |
| | #20 (permalink) | ||||
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
PHP Code: ![]() Tom | ||||
| |
| | #21 (permalink) |
| NamePros Regular Join Date: Dec 2005
Posts: 210
![]() | md5() is decryptable, but it can take a while to do so depending on the chars. If it is combined with Aa1-10*#@#$% well it would take days to decrypt...if it is a simple "hello" it will take around 10mins maybe... But yes people have been able to decrypt it through dictionary words, brute force attacks. md5 and sha1 are both decryptable...if you really are that desperate i can show u a screen shot .. if it is allowed by the board admin ofcourse ????: NamePros.com http://www.namepros.com/showthread.php?t=173486 Linux decrypters are alot quicker then windows and they do it in nerly half the time aswell. as mentioned above, you can prevent this by ofcourse using a salt. No matter how much of an encryption you do create SOMEONE will be able to get around it someday
Last edited by wackyjoe; 06-11-2006 at 03:05 AM.
|
| |
| | #22 (permalink) | ||||||||
| Senior Member Join Date: Jun 2003 Location: UK
Posts: 3,541
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| ||||||||
| |
| | #24 (permalink) |
| Senior Member Join Date: Apr 2006
Posts: 1,345
![]() ![]() ![]() ![]() ![]() ![]() | If anyone thinks a encryption is unencryptable, you are clearly wrong. They thought enigma was unencryptable, but it wasn't. It took ages but it happened. How about SSL encryption? I heard it took a team of mathematicians 17 years to break one little line of code... (does anyone have a link to this story?) What is the effectiveness of MD5 hash? It's 128 isn't it? SHA1 is 160-bits as well? Put it simply, combine hash's and you shouldn't have any trouble, with anyone (For a long time atleast). |
| |
| | #25 (permalink) |
| NamePros Regular Join Date: Jun 2004 Location: Iowa City
Posts: 703
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | doing md5(md5($string)) isn't necasarilly safer
__________________ formally ninedogger ------ Want to talk to a stranger? -->| Click Here | TalkToAStranger.com | <-- Meet New Friends |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Md5 | faisj | Programming | 2 | 11-15-2005 09:29 PM |
| md5 table | axilant | Programming | 4 | 06-29-2005 08:17 PM |
| MD5 or SHA1, which do you prefer? | nicholas | CODE | 15 | 11-05-2004 12:00 PM |