string s = "Foo bar"; string s1 = Convert.ToBase64String(Encoding.Unicode.GetBytes(s)); ' And back... string s2 = Encoding.Unicode.GetString(Convert.FromBase64String(s1));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)