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

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

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