public static string Decrypt(string encryptedText, string key1, string key2)
        {
            string outPut = encryptedText;

            outPut = XOR.EncryptDecrypt(outPut, 606258);
            outPut = AES.Decrypt(outPut, key2);
            outPut = XOR.EncryptDecrypt(outPut, 498356);
            outPut = PBKDF2.Decrypt(outPut, key1);
            outPut = XOR.EncryptDecrypt(outPut, 182524);
            return(outPut);
        }
Пример #2
0
 public static string EncryptDecryptText(string key, string text)
 {
     try
     {
         XOR    xor       = new XOR(key, text);
         string finalText = xor.EncryptDecrypt();
         return(finalText);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }