php - encrypt decrypt using mcrypt and sha-512
<p>I have gotten a code from php.net.</p>

<p><a href="http://php.net/manual/en/book.mcrypt.php" rel="nofollow">http://php.net/manual/en/book.mcrypt.php</a></p>

<p>Problem is when you encrypt something, the next time the ecrypted one isn't the same as the first one. I need to get the exact same hash using sha512 or sha256. I also need to decrypt it because the function will be used for encrypting customer's name and other data.</p>

<p>Thanks  in advance!</p>
