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