Hi
I have a winforms application that will be installed on a clients machine. The client is able to create user logins for a website from this application.
I am using a hashing algorithm with salt values to produce different cipher text from the same plain text values encrypted with the same symmetric (Rijndael) key and initialization vector.
My problem is, where do I store the key and initialization vector? I know it's not recommended to hardcode them into the code due to a number of reasons including hackers being able to see the values, but how else do I store them?
Thanks
Loading
VulpesPosted Mar 22, 2012, 7:59 AM
AdamPosted Mar 22, 2012, 7:14 AM
Is this quite a common problem or do people just move this kind of functionality to a webservice? (Which unfortunately isn't an option in this case).
VulpesPosted Mar 22, 2012, 7:06 AM
There are a couple of things you can do to make this more difficult.
One possibility would be isolated storage which is the mechanism used by Silverlight:
http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefile.aspx
Another possibility would be windows data protection on which I wrote an article a while back:
http://www.c-sharpcorner.com/uploadfile/b942f9/using-windows-data-protection/