在PHP中加密敏感数据[重复]

This question already has an answer here:

I'm working on insecure cryptographic storage. As I know to prevent this I have to encrypt my data. All documents say that MD5 is weak,so can you suggest me some strong encryption in PHP,or I have to create my own encryption logic/scheme ?

Thks for all helps :)

</div>

Using Salt Hashing + Sha

// define your encryption key

$encyption_key = 'IMHPU7GG3HI5FCMYCT354P7V8FEUPRFL'; //sample


// Appending salt to the password
$_POST['pword'] .= $encryption_key;

// then Return the SHA-1 encryption
$password = sha1($_POST['pword']);