作者:孟宪会 出自:【孟宪会之精彩世界】 发布日期:2007年1月16日 11点41分9秒
http://dotnet.aspx.cc/article/4439a5ef-e2c8-4879-a714-ff8dd0099284/read.aspx
string a = "【孟宪会之精彩世界】";
byte[] b = System.Text.Encoding.Default.GetBytes(a);
//转成 Base64 形式的 System.String
a = Convert.ToBase64String(b);
Response.Write(a);
//转回到原来的 System.String。
byte[] c = Convert.FromBase64String(a);
a = System.Text.Encoding.Default.GetString(c);
Response.Write(a);