You are not logged in.
Hi,
We all know that constants and strings written directly in source code are also directly written in compiled EXE files. So, someone trying to hack the key may go in assembly code, see some strings there & may search EXE file with a hex editor and also might extract my fixed string for reversing crypt text.
I wonder if there are some easy ways to "hide" my key used for AES256 encryption in compiled EXE file.
Thanks.
--Ertan
Offline
It would be just the same as with any private key.
Once the key is shared, it should be kept private...
What you can do is put the key in a file, or ask for it at the first connection, then store it locally.
Then, the .exe won't contain the private key.
Usually, we put the keys in the settings file, encoded as BASE-64 with a simple encryption - via the TSynPersistentWithPassword class.
Offline