Hash/encrypt a string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using .NET, what would be the easiest way to encrypt or hash a string? I have
two integer ID numbers stored in a database that I need to "hide" and append
to an URL. The primary constraint is that there cannot be any modifications
to the database, and that the code should be able to input a hashed or
encrypted string and convert it to the original values.

Thanks!
Mark
 
Mark said:
Using .NET, what would be the easiest way to encrypt or hash a string? I have
two integer ID numbers stored in a database that I need to "hide" and append
to an URL. The primary constraint is that there cannot be any modifications
to the database, and that the code should be able to input a hashed or
encrypted string and convert it to the original values.

Well, if it's got to be reversible, you *need* encryption rather than
hashing - hashing is a one-way process.

However, if you've got two integers, why are you looking at strings?
 
Back
Top