PHP: Is it more secure to sha1 the already sha1 string?

E.g. sha1(md5(sha1($password)));
Is this more secure then just sha1($password);
_______________________________________
Im trying to use both md5 and sha1 hashers to make the most secure hashed string, is this the most secure way?
------
function dualHash($string) {
$salt = "erqXIeXHPkqi";
$dualHash1 = sha1($string.$salt);
$dualHash2 = md5($string.$salt);
$dualHash = substr($dualHash1,0,24).substr($dualHash2,0,16);
return $dualHash;
}
------
 
dont use sha1

use md5.

Generates a longer string, alot more secure.

Also use a salt, and yes md5ing an md5'ed string is theoritcally harder to crack. Even so, if they get a hold of the string they can't do much with out the salt.
 
Back
Top