📜  转换为base64 c#代码示例

📅  最后修改于: 2022-03-11 14:49:06.157000             🧑  作者: Mango

代码示例6
public static string Base64Encode(string plainText) {
  var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(plainText);
  return System.Convert.ToBase64String(plainTextBytes);
}