| | |||||
| ||||||||
| 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) |
| Account Suspended Join Date: Aug 2006 Location: Under a Bridge
Posts: 200
![]() ![]() | |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Feb 2006 Location: Montreal, Quebec, Canada
Posts: 324
![]() | I'm confused but.... PHP Code: PHP Code: |
| |
| | #3 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,792
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | PHP Code: .. and for $Cvalue, I think it's more or less the same thing. You need to make it a global variable for it to be used outside of the function. ????: NamePros.com http://www.namepros.com/showthread.php?t=238391 The next code you posted just md5()'s the text and doesn't do anything with it. |
| |
| | THREAD STARTER #4 (permalink) | ||||
| Account Suspended Join Date: Aug 2006 Location: Under a Bridge
Posts: 200
![]() ![]() | the following is from www.w3schools.com
| ||||
| |
| | #5 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,955
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | A bit offtopic but isn't it best to use sha1 instead of md5 ?
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists |
| |
| | #7 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,792
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I know how to use md5()... You are using it inside of another function to do the same exact thing with a longer name and yours won't work. Read: http://us3.php.net/global |
| |
| | #8 (permalink) |
| Senior Member Join Date: Aug 2005 Location: East Yorkshire, England
Posts: 2,689
![]() ![]() ![]() ![]() ![]() ![]() ![]() | Heres a fixed version! PHP Code: |
| |
| | #9 (permalink) |
| NamePros Regular Join Date: Jan 2006
Posts: 571
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | i highly suggest you don't use this code for MD5 encryption, extremely easy to crack (approx 1 - 3 seconds). In fact, you can crack it online at http://www.md5database.net/ to make it more secure you use a salt. |
| |
| | #10 (permalink) |
| Senior Member Join Date: Apr 2006
Posts: 1,345
![]() ![]() ![]() ![]() ![]() ![]() | Look, Md5 is stupidly hard to hack so don't say it is. People have got lucky with matching words with md5 hashes, simple as. Using one or the other is not going to be sensible, the same result could happen. The best you could do is to put an md5 into an sha1 and into rot13 and into salt... Or simply just md5 the md5 hash... |
| |
| | #12 (permalink) |
| Resistance is Futile Join Date: Apr 2006 Location: Montreal, Canada
Posts: 1,094
![]() ![]() ![]() ![]() ![]() ![]() | Well, you could encrypt something easily. Just keep on md5ing and salting and sha1ing until your computer crashes, so it's pretty hard to crack stuff.
__________________ Freelance Web Developer PHP, MySQL, XHTML, CSS, Javascript, jQuery, Wordpress Portfolio: www.bundy.ca |
| |
| | #16 (permalink) | ||||
| NamePros Regular Join Date: Oct 2006
Posts: 970
![]() ![]() |
Last edited by neroux; 10-25-2006 at 03:10 AM.
| ||||
| |
| | #18 (permalink) |
| NamePros Regular Join Date: Sep 2006
Posts: 634
![]() ![]() | You do not get that there are billions of combinations, and md5database is very incomplete, there is a small chance that it has a standard dictionary word, but a mixed case, mixed character, and completely random string it will not decode. |
| |
| | #19 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | md5database does not crack the MD5 keys, it has a database of keys people have entered...it only retrieves the already cracked info. If i enter "1234" into it to be encoded, that then gets added to their database. For example, i entered "88a712d55763cc29bb2986bba2493408" ("fgsg4352gv") into the decoder and it found nothing, but if i enter "fgsg4352gv" into the encoder it will then be added to the database. To crack a md5 line takes quite a while...i created a script to do it and it took the script all day to crack a 5 char string. The best way to protect yourself is double md5, salt or SH1 (but even SH1 can be cracked). I've put together an encryption tool below, feel free to use it on your localhost to test out passwords and stuff ![]() 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' |
| |
| | #20 (permalink) |
| Senior Member Join Date: Aug 2005 Location: East Yorkshire, England
Posts: 2,689
![]() ![]() ![]() ![]() ![]() ![]() ![]() | I dont particularly like MD5, mainly because of md5 databases. I do however, have to use it because phpbb2 uses MD5 and I cant be bothered to rehash all the passwords, lol. This is my preferred method when hashing passwords: PHP Code: |
| |
| | #21 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Good method there...very secure Heres another one...pretty much uncrackable (well...unless you can figure out a way to decode over 11 characters at a time) 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' |
| |
| | #22 (permalink) | ||||
| NamePros Regular Join Date: Oct 2006
Posts: 970
![]() ![]() |
| ||||
| |
| | #23 (permalink) | ||||
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
__________________ 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' | ||||
| |
| | #25 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,806
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Call it what you like...the fact is you can turn an MD5 string back to its origional state. End of story.
__________________ 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' |
| |