In fact, private methods are implemented in C #, which can still be found using Reflection .
What I'm going to do is write the public string Encrypt(string data) and private string Decrypt(string cipher) methods to perform encryption and decryption.
Unfortunately, if someone knows the .NET platform, they can use Reflection to search for Decrypt methods and decrypt everything that is encrypted.
It seems that it is not so safe. Therefore, I want to make a Decrypt method for a truly private method.
But how to do that?
Updated Jan 09, 2012 10:52 pm Sydney Time
bdares provides a technical explanation for this.
Eric Lippert gives a political explanation for this issue
Thanks to both experts!
source share