How to hardcore important strings in code?

Peter Volz 1,295 Reputation points
2024-02-20T10:10:03.1966667+00:00

Hello,

My question only applies to VB.net WinForms GUI only apps, inside the code, I need to store and pass the expensive license keys to SDKs, store my own passwords for WebClient.Credentials etc.

Rather than encrypting strings done by the obfuscator at the end, is there anything on my own?

Microsoft says DE0001: SecureString shouldn't be used. Don't use SecureString for new code.

But that's for .NET and didn't mention what about .Net Framework 4.x ?

Thanks in advance for any valuable tips :)

https://github.com/dotnet/platform-compat/blob/master/docs/DE0001.md

Developer technologies VB
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.