$pass = abc123; //user enter password
$sail = "1Dat0p";// your defined salt
$encrypt_pass = sha1($pass.$salt); //encrypt with sha1
$encrypt_pass = $md5($encrypt_pass);//encrypt the sha1 a random number of times with md5
$new_encrypt = substr(substr($encrypt_pass,0,-5),5);//take off the last 5 and first 5 characters
$new_encrypt = 'rd2d3'.$encrypt_pass.'p98k7; //add in your known first 5 and last 5 characters
(btw im new to the boards , and find security issues fun have plently of beginner to complex ways to encrypt data - will post when i get time to).
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download