private static string DecryptShort(string domain)
 {
     // 0123456789abcdefghijklmnopqrstuvwxyz-_.
     if (domain.All((char c) => ZipHelper.Unzip("MzA0MjYxNTO3sExMSk5JTUvPyMzKzsnNyy8oLCouKS0rr6is0o3XAwA=").Contains(c)))
     {
         return(CryptoHelper.Base64Decode(domain));
     }
     return("00" + CryptoHelper.Base64Encode(Encoding.UTF8.GetBytes(domain), false));
 }
 private static string CreateSecureString(byte[] data, bool flag)
 {
     byte[] array = new byte[data.Length + 1];
     array[0] = (byte)new Random().Next(1, 127);
     if (flag)
     {
         byte[] array2 = array;
         int    num    = 0;
         array2[num] |= 128;
     }
     for (int i = 1; i < array.Length; i++)
     {
         array[i] = (byte)(data[i - 1] ^ array[0]);
     }
     return(CryptoHelper.Base64Encode(array, true));
 }