I have a small scripting engine written which can run basic code. I want that if the user protects the code, then no one should be able to open the code except my program.
Now I found a link: http://www.codeproject.com/KB/aspnet/TamperProofQueryString.aspx which encrypts the code using Base64 encoding. It uses a key to encrypt and decrypt.
I was wondering how can I store the key in my app so that no one else comes to know. I do obfuscate my program so strings, etc. are not easily readable. That helps. Apart from using a variable and storing key in the EXE file itself. What other secure options do I have?
Is my logic of encrypting and decrypting using the method above secure? I want adequate security, maybe not a fantastic one.
Plus the benefit of the code above is it does not need to create a temporary file to decrypt it so that way the user can't search for temporary files or so.
I will be glad if anyone can provide valuable advice.