Ejemplo n.º 1
0
 public static void Decrypt(DomainList domainList, StringCryptographer decrypter, IList <string> decryptedDomains)
 {
     decryptedDomains.Clear();
     if (decrypter != null)
     {
         foreach (string encryptedDomain in domainList)
         {
             decryptedDomains.Add(decrypter.Decrypt(encryptedDomain));
         }
     }
     else
     {
         foreach (string domain in domainList)
         {
             decryptedDomains.Add(domain);
         }
     }
 }
Ejemplo n.º 2
0
 public static string[] Decrypt(DomainList domainList, StringCryptographer decrypter)
 {
     string[] allDomains = new string[domainList.Count];
     if (decrypter != null)
     {
         for (int index = 0; index < allDomains.Length; ++index)
         {
             allDomains[index] = decrypter.Decrypt(domainList[index]);
         }
     }
     else
     {
         for (int index = 0; index < allDomains.Length; ++index)
         {
             allDomains[index] = domainList[index];
         }
     }
     return(allDomains);
 }