I want to hide important string variable values like passwords,username,ip and url,etc in .Net application (C#,VB.NET) In process explorer we can view string in image or Memory ,I want to hide image string
You can stop static analysis like that by encrypting the strings and decrypting them at runtime into a SecureString
.
The SecureString
class is designed specifically to help prevent things like passwords being discoverable in memory.
However, note that it is still possible to attach a debugger to your process and see the strings, so you will need to also obfuscate using something like Dotfuscator to make it even more difficult to see the sensitive strings.
Here is an article about some of the problems with SecureString
.
Despite its drawbacks, I think it's still your best best.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With