Adding hmac to an already existing hash in PHP
<p>Now, lets say that i have this hash:<br>
Llama = ad4ba4cc53b9913beebd2b92da5ef2263e791d64</p>

<p>How can i add a hmac to a already generated hash?</p>

<p>Here is an example:</p>

<p>Llama = ad4ba4cc53b9913beebd2b92da5ef2263e791d64<br>
Llama + hmac(123) = faf30b3b89da5ee9c54866d71000058da1f82148<br>
Llama(The hash from above) + hmac(123) = 05313f6a55f5d7bf4ee42d8c66c20b37d1e2f46c<br></p>

<p>For this example im using sha1 but im going to use sha512.
Write if you need some more details.</p>

<p>The reason why i want to do this is that i want to encrypt the users password on the client side and match it in my MySQl database. But, i do not want my hmac exposed to the public by writing it in the javascript code.</p>

<p><strong>Is this even possible?</strong></p>

<p>Thanks in advance!</p>
