i am generating *.reg file using code which will have some important data. and user will save this into registry.
upon application launch i am getting the values from registry and performing some validation..
but the problem is that in registry and in *.reg file the information are stored in plain text.
how can i create encrypted *.reg file first.
then in application start. how to decrypt the value(encrypted) from registry..
i read some articles. but they are related to encryption/decryption of file.
here i am working with “*.reg” file and Registry itself
Sorry Mohsan, that’s the wrong way. d. showed the right way.
Just imagine if you encrypt a .reg file. What should happen afterwards?? You’ll like to import it into the registry, but before you can you have to decrypt it and so just plain text comes into registry which can be read be everyone.
So don’t encrypt your key or value names. Encrypt the content of your values within the registry. So your program can read it in, decrypt it and work with it. Here is an example:
So you program opens the key, reads the value and computes the decrypt algorithm on that value, resolving it to: ‘My Secret Password’