예제 #1
0
파일: Form1.cs 프로젝트: ankour/decrypt
        private void Form1_Load(object sender, EventArgs e)
        {
            string   text     = Application.StartupPath + "\\set.ini";
            FileInfo fileInfo = new FileInfo(text);

            StreamReader streamReader = new StreamReader(text);
            string       text2        = streamReader.ReadLine();;

            text2 = text2.Substring(8);
            int    num   = text2.LastIndexOf("Password=") + 8;
            string text3 = text2.Substring(num + 1, text2.Length - num - 1);

            text3 = Form1.DecryptoPassword(text3);
            string str = text2.Substring(0, num + 1);

            textBox1.Text = text3;
        }