Author: jitumandalia | Posted on: 7/30/2009 2:16:29 PM | Views : 398

Hi Friends,
I am using MD5 crypto service provider in ASP.Net to hash user's input and store it to SQL Server database.
Now requirement is to display the same hashed string on UI in administrative mode and allower administrator/operator to copy the hashed string and paste the same into script files to put the same into other databases.
But the hashed string displayed on UI and the one getting stored into database (looking into dabase table) both looks different. UI does not display the text exactly same as database table when open the table and look for the hashed string. Due to this if user copies the hashed string in UI and paste it into script file, then the data comparison of hashed value fails. While it works fine in case we directly store the data into database using ADO.Net.
We need this as in many SQL scripts we hard code this hashed value for initial configuration for certain data. I am using UTF8 encoding.
I even tried storing the hashed ...

Go to the complete details ...