首页 > 代码库 > c#中base64编码解码

c#中base64编码解码

//编码:byte[] bytes = Encoding.Default.GetBytes("要转换的字符");string str = Convert.ToBase64String(bytes);//解码:byte[] outputb = Convert.FromBase64String(str);string orgStr = Encoding.Default.GetString(outputb);

 

c#中base64编码解码