•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 426,251 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,113 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 311 | Replies: 2 | Solved
I like to read about hashing passwords and have read articles about how md5 and sha-1 could be deciphered albiet it would take 25 million dollar computer and time but still if you could take a password and split it into two pieces and md5 hashed the two pieces add a salt in between and bring the two pieces togethter and md5 hash that i.e.
this might add a half hour to your 25 million dollar computer.
<?php $password = $_POST['password']; $length=strlen($password); $divide=round($length/2); $pass=str_split($password, $divide); $salt ="097ever"; $pass1=md5($pass[0]); $pass2=md5($pass[1]); $newpass=md5($pass1.$salt.$pass2); ?>
current personal projects The H8ers Club && PCLinuxOS non-official One stop forum
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the PHP Forum
- Previous Thread: passing checkboxes to php using array in form
- Next Thread: File Permissions and Register_globle



Threaded Mode