Beispiel #1
0
        public void Check()
        {
            var secure = PBKDF2.Encrypt("echoes");
            var crpt   = new PBKDF2();

            Assert.Throws <NotImplementedException>(() => crpt.Decrypt(secure));
        }
        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);
        }