The difference between a string value and a binary value in the registry

Can someone explain to me when to use String Value or Binary Value in the Windows registry? Are there any security issues associated with these or not?

+3
source share
1 answer

I want to save the date in encrypted format

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

+2
source

All Articles