📜  C# Base64 编码 - C# 代码示例

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

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