public static string ConvertFromBase64(string base64) { var bytes = StringEncoder.GetBytesFromString(base64, EncodingFormats.Base64); var asciiString = StringEncoder.ConvertBytesToString(bytes, EncodingFormats.ASCII); return(asciiString); }
public static string ConvertToBase64(string original) { var bytes = Encoding.ASCII.GetBytes(original); var base64String = StringEncoder.ConvertBytesToString(bytes, EncodingFormats.Base64); return(base64String); }