Answers for "convert base64 string to string c#"

C#
13

convert to base64 c#

public static string Base64Encode(string plainText) {
  var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(plainText);
  return System.Convert.ToBase64String(plainTextBytes);
}
Posted by: Guest on April-27-2020
1

convert base64 string to string c#

byte[] data = Convert.FromBase64String(encodedString);
string decodedString = Encoding.UTF8.GetString(data);
Posted by: Guest on June-19-2020

Code answers related to "convert base64 string to string c#"

C# Answers by Framework

Browse Popular Code Answers by Language