sha1 encode exact value of parameter instead of the variable value
<p>I'm working with an application that requires sha1 encoding for certain form values.</p>

<p>The problem is that when I use the following</p>

<pre><code>&lt;?php echo(hash("sha1","par1=".$_POST['p1']."&amp;par2=".$_POST['p2'])); ?&gt;
</code></pre>

<p>It gives me a sha1 encoding of the <em>actual</em> string, while I want to get a sha1 encoding of the posted values, so in this example I want to get</p>

<pre><code>&lt;?php echo(hash("sha1","par1=firstvalue&amp;par2=secondvalue")); ?&gt;
</code></pre>

<p>How can I realize this? Is it actually that simple and am I thinking way to difficult?</p>
