Hiding Secret Key & Initialization Vector from Decompiler
-
How can I hide Secret Key and Initialization vector string from .net decompiler like Reflector.net? Anybody who has the decomplier and the application's exe or dll can read my string and can decrypt the data file.
Thanks & Regards... Amit
-
How can I hide Secret Key and Initialization vector string from .net decompiler like Reflector.net? Anybody who has the decomplier and the application's exe or dll can read my string and can decrypt the data file.
Thanks & Regards... Amit
Encrypt the keys externally and use the encrypted version in your code. You'll, of course, have to supply code in your app to decrypt the keys so they can be used. So, no matter what you do, you cannot completely hide what you're doing from Reflector. All you can do is slow down the person looking at your code.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008