Jump to content

Recommended Posts

Posted

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
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...