I am not sure if this is the best place to post this type of question.
I have come up with function which, I believe, is a very secure method of hashing. (I could be completely wrong).
Here's the code:
function hashPW($password){
$letters = array('a','b','c','d','e','f','g');
$numbers = array(1,2,3,4,5,6,7);
return str_replace($letters,$numbers,md5($password));
}
"password" outputs as 56443332511765461483274528823699
I am not too sure if this a secure method. My thoughs were that it's hard to know which numbers were actually a letter or number from the md5.
If this isn't a good option to use for my PHP web application, could you suggest something that is.
Thanks.