| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Mar 2006
Posts: 227
![]() ![]() ![]() | Security - Simple md5 output [PHP] Recently users have been protecting their password by encrypting it in md5 format. Are you not up to date? Well with this script, you can be! (Although, this is not the safest form of protecting yourself... it is a simple script which will help you a lot. I hold no responsibility for any hack attempts against this script!) PHP Code: http://www.netsuhi.com |
| |
| | #2 (permalink) |
| Senior Member Join Date: Dec 2006 Location: England
Posts: 1,565
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | md5 should not be relied on. It is a myth that is can be decrypted because technically it is not an encryption however more and more larger and larger hash dictionaries are becoming easier to find. You should SALT your passwords as well. |
| |
| | #4 (permalink) |
| NamePros Regular Join Date: Feb 2006
Posts: 584
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | MD5 tables are one of the most common. The reason - used by almost every commercial php script. If a hacker manages to get into the database, all he gets is MD5 hashes. However, due to its popularity, very large tables (like rainbow tables) are available. |
| |
| | #5 (permalink) | ||||
| Buy my domains. Join Date: Feb 2006
Posts: 2,792
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | We all understand the crap about how it can be "decrypted" (I know that it isn't really decryption) and all the other stuff: http://www.namepros.com/code/238391-...passwords.html Also, the script in the first post doesn't actually do anything.. It just echo's the md5 of a string if it is "secure."
| ||||
| |
| | #8 (permalink) |
| Senior Member Join Date: Jan 2006 Location: Portland, Oregon
Posts: 2,100
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
__________________ HostingFuze.com Premium Master Reseller Services | 99.9% Uptime Guaranteed SLA | Starting at $4.95/mo Basic Reseller Hosting @ HostFz.com - Services starting as low as $1.95/mo! |
| |
| | #9 (permalink) |
| NamePros Regular Join Date: Feb 2006
Posts: 584
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | What it does is enter what you try to encrypt into the MD5 hash database. When you enter the same hash into the decrypt field, it returns the original word again. A pretty cheap trick. Try entering (1241b4d509c88dd2ed8c646ad812a1f6). It'll be unable to decrypt. |
| |
| | #10 (permalink) |
| NamePros Member Join Date: Jun 2006
Posts: 195
![]() | If everyone on the net enter a value to the website, it will have billion of record to search for
__________________ tanfwc [ My HomePage ] My Project : Free Image Hosting # Shorten your URL! # Submit your proxy Cheap VPS on GNAX Network -- starting US$12.99/mo! |
| |
| | #11 (permalink) | ||||
| Senior Member Join Date: Dec 2006 Location: England
Posts: 1,565
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| ||||
| |
| | #13 (permalink) |
| NamePros Regular Join Date: May 2005 Location: England
Posts: 390
![]() ![]() ![]() | Well done on using the md5 function ^^ I'm presuming this is one of your first ultra mini scripts. Use a SALT on it to improve security, so PHP Code:
__________________ -Beaver6813.com - Web Developer Extraordinaire! |
| |