Question

Can someone explain me when to use String Value or Binary Value in windows registry? Is there any security concerns also attached with these or not ?

Was it helpful?

Solution

I want to store date in encrypted format

You must use the binary format. Encrypted data cannot be stored in a string. It will randomly get corrupted when the string is normalized, not every byte value is a valid Unicode codepoint. If you absolutely want a string then you have to encode the data, Convert.ToBase64String().

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top