(sorry for my english)
why c# does not have dll protect so after compile no one can access to code that programmer Created it?
after i created a simple program and then use dnspy for see i can see my code or not as a result i see every thing i writed in my program.
for example if i wanted to encrypt some text with private key anyone can see my private key and then decrypt it. or can created a program without need license or etc.
just a request please only show me the program or any other way that's are free (i can't pay for anything ).
i only find this in nuget: https://www.nuget.org/packages/Gapotchenko.Eazfuscator.NET
is it good?
Asked
Active
Viewed 56 times
0
Saman
- 5
- 4
-
2Simple: you can't. Obfuscation only slows people down, it doesn't stop them. – Dai Oct 23 '20 at 17:48
-
Short answer: not possible in a foolproof way. See [Protect .NET code from reverse engineering?](https://stackoverflow.com/questions/506282/protect-net-code-from-reverse-engineering/48448559). – dxiv Oct 23 '20 at 17:48
-
1Are you asking _just_ so you can protect your private key? If that's your only concern then you may just need to change how you do encryption - no obfuscator will protect internal data 100% effectively. – D Stanley Oct 23 '20 at 17:48
-
1If an encryption key is private then you should never give it to a user in any form, obfuscated or not. You may not be encrypting correctly. – David Oct 23 '20 at 17:49
-
1Exactly - you _encrypt_ using a public key and _decrypt_ using a corresponding private key. – D Stanley Oct 23 '20 at 17:49
-
no protect private and public key is just a example. i want to protect my program from reverse engineering. if there is no way to reverse engineering so programming is not good as anyone can see and create other programes as anyone can see the project. so what's the point of Github that is for Open Source project when anyone can see the code of dll? – Saman Oct 23 '20 at 18:16
-
The point of GitHub? Lookup why developers use source control. – quaabaam Oct 23 '20 at 20:02