Beispiel #1
0
 public static string ToBase64String(string value)
 {
     return(ConvertBase64My.ToBase64String(Encoding.UTF8.GetBytes(value)));
 }
Beispiel #2
0
 public static string ToBase64String(byte[] value)
 {
     return(ConvertBase64My.ToBase64String(value));
 }
Beispiel #3
0
 public static Guid FromBase64StringToGuid(string s)
 {
     return(new Guid(ConvertBase64My.FromBase64String(s)));
 }
Beispiel #4
0
 public static string FromBase64StringToString(string s)
 {
     return(new string(Encoding.UTF8.GetChars(ConvertBase64My.FromBase64String(s))));
 }
Beispiel #5
0
 public static byte[] FromBase64StringToBytes(string s)
 {
     return(ConvertBase64My.FromBase64String(s));
 }
Beispiel #6
0
 public static string ToBase64String(Guid value)
 {
     return(ConvertBase64My.ToBase64String(value.ToByteArray()));
 }