Quantcast
Channel: hashcat Forum - All Forums
Viewing all articles
Browse latest Browse all 8232

Creating a secure hash?

$
0
0
As a web designer I am looking to create a hash that is hard to crack. I found this site and thought to ask for info that anyone can give. I created a somewhat random function with php. Any help and feedback would be very much appreciated.
Code:
function dbHash($password,$name){
global $salt;
if(isOdd(strlen($password))){
    return sha1($salt.$password.$name).md5($name.$salt.$password);
    }else{
    return md5($salt.$password.$name).sha1($password.$name.$salt);
    }
}
//
function isOdd( $int )
{
  return( $int & 1 );
}

Viewing all articles
Browse latest Browse all 8232

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>