Exemplo n.º 1
0
 /// <summary>
 /// A faster alternative for Convert.FromBase64String
 /// </summary>
 /// <param name="origin"></param>
 /// <returns></returns>
 public static byte[] Base64Decode(this string origin)
 {
     return(ChromiumBase64Codec.Decode(origin));
 }
Exemplo n.º 2
0
 /// <summary>
 /// A faster alternative for Convert.ToBase64String
 /// </summary>
 /// <param name="bytes"></param>
 /// <returns></returns>
 public static string Base64Encode(this byte[] bytes)
 {
     return(ChromiumBase64Codec.Encode(bytes));
 }