Encryption of a 6 digit number into another 6 digit number in c#
<p>I want to encrypt an id and pass to a link..for example</p>

<pre><code>id=196
encryptedid=345
randno=234
encryptedrandno=456
id=encryptedid+encryptedrandno
link: id
so when user clikcs that link at backend 
id=id-encryptedrandno(which gives us encryptedid)
id=decrypt(id)
</code></pre>

<p>Pls tel me this logic
I am using c# web application</p>
