Exemplo n.º 1
0
    public void method_18(string string_7)
    {
        string text  = Delegate124.smethod_0(Class3.smethod_0 <string>(1039446687u, 331866531155298722uL), this.string_3);
        string text2 = Delegate124.smethod_0(text, "\\Keys");

        Delegate124.smethod_0(text, "\\Files");
        string text3 = Delegate124.smethod_0(string_7, ".tmp");

        Delegate24.smethod_0();
        Delegate189.smethod_0(true);
        RSACryptoServiceProvider object_ = Delegate33.smethod_0();
        string text4 = (string)Delegate169.smethod_0(text2, "Private", "No Private Key was found!");

        if (Delegate98.smethod_0(text4, ""))
        {
            Delegate164.smethod_0(object_, text4);
            byte[]     byte_    = new byte[344];
            FileStream object_2 = Delegate35.smethod_0(string_7, FileMode.Open, FileAccess.Read);
            Delegate187.smethod_0(object_2, -344L, SeekOrigin.End);
            Delegate190.smethod_0(object_2, byte_, 0, 344);
            string text5  = Delegate191.smethod_0(Delegate166.smethod_0(), byte_);
            byte[] byte_2 = Delegate146.smethod_0(text5);
            byte[] array  = Delegate168.smethod_1(object_, byte_2, false);
            Delegate153.smethod_1(array);
            Delegate162.smethod_0(object_2);
            FileStream object_3 = Delegate35.smethod_0(string_7, FileMode.Open, FileAccess.ReadWrite);
            Delegate193.smethod_0(object_3, Delegate192.smethod_0(object_3) - 344L);
            Delegate162.smethod_0(object_3);
            using (FileStream fileStream = Delegate32.smethod_0(text3, FileMode.Create))
            {
                using (AesManaged aesManaged = Delegate36.smethod_0())
                {
                    using (CryptoStream cryptoStream = Delegate26.smethod_0(fileStream, Delegate149.smethod_1(aesManaged, array, array), CryptoStreamMode.Write))
                    {
                        using (FileStream fileStream2 = Delegate32.smethod_0(string_7, FileMode.Open))
                        {
                            Delegate183.smethod_0(aesManaged, 256);
                            Delegate183.smethod_1(aesManaged, 128);
                            int num;
                            while ((num = Delegate185.smethod_0(fileStream2)) != -1)
                            {
                                Delegate184.smethod_0(cryptoStream, (byte)num);
                            }
                        }
                    }
                }
            }
            Delegate100.smethod_1(string_7);
            Delegate130.smethod_1(text3, string_7);
        }
    }
Exemplo n.º 2
0
 internal abstract void vmethod_1(Delegate36 delegate36_0);