Encrypting Data into a string



Hi there.

I am trying to encrypt a connect string that has some special
characters in it (i.e. ';' and '=' and whatever other funky chars can
be in a password). So this chokes when I use the Convert.ToBase64 and
Convert.FromBase64 methods. I need the result to be a legitimate
string that I can put into a config file. Any ideas on how to best
overcome this issue?

Thanks, Mike

.