Martin Stevnhoved Posted July 11, 2016 Posted July 11, 2016 Hi MMSOFT. Is there an easy way for using SetValueForKey and GetValueForKey without encrypting the data. Sometimes we want the plugin-data to be configured or manipulated directly via registry. Quote GetValueForKey() GetValueForKey is used to get a previously stored value using "SetValueForKey". This takes the value from the Windows Registry, decrypts it and returns your value in clear text. void SetValueForKey(string Key, string Value) In order to save plugin's data we can implement our own methods or use "SetValueForKey" which creates a registry entry with the name specified in the "Key" parameter and our value safely encrypted. If not, can anyone help providing a C# function that always will return the same registry key name as GetValueForKey/SetValueForKey uses? Best Regards, Martin.
Administrators Paul Posted July 12, 2016 Administrators Posted July 12, 2016 Hi Martin, It's not possible to store it in clear text I'm afraid. Check out this article on how to read and write registry values. -Paul
Martin Stevnhoved Posted July 14, 2016 Author Posted July 14, 2016 Thanks. I have now worked around it. :-) Consider it a feature-request. It should be easy to implement a optional boolean parameter. Bye, Martin Paul 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now