Example #1
0
 public static string Base64Decode(string source)
 {
     byte[] barray = Base64Helper.FromBase64String(source);
     return(Encoding.Default.GetString(barray));
 }
Example #2
0
 public static string Base64Encode(string source)
 {
     byte[] barray = Encoding.Default.GetBytes(source);
     return(Base64Helper.ToBase64String(barray));
 }