public static void Overwhite() { String pas = File.ReadAllText("pas.txt"); Config.vs = pas.Split(new char[] { ':', '\r', '\n', '|', }, StringSplitOptions.RemoveEmptyEntries); List <string> l = new List <string>(); for (int i = 1; i <= Config.vs.Length; i++) { if (i % 3 == 0) { Shifr.translate(Config.vs[i - 1]); l.Add(Config.textdeshifr); Config.textdeshifr = ""; } else { l.Add(Config.vs[i - 1]); } } File.WriteAllText("pas.txt", ""); Shifr.raskl(); StreamWriter f = new StreamWriter("pas.txt", true); for (int i = 1; i <= l.Count; i++) { if (i % 3 == 0) { Shifr.doit(l[i - 1], Config.alf); f.Write(l[i - 3] + ":" + l[i - 2] + ":" + Convert.ToString(Config.dif) + "+" + Config.textshifr + Environment.NewLine); Config.textshifr = ""; } } f.Close(); }
private void comboBox1_SelectedValueChanged(object sender, EventArgs e) { for (int i = 0; i < Config.vs.Length; i++) { if (Config.vs[i] == comboBox1.Text) { Shifr.translate(Config.vs[i + 2]); label1.Text = Config.textdeshifr; } } }
private void button_get_Click(object sender, EventArgs e) { string text = ""; for (int i = 0; i < Config.vs.Length; i++) { if (comboBox_site.Text == Config.vs[i]) { Config.adress = Config.vs[i + 1]; text = Config.vs[i + 2]; } } Shifr.translate(text); if (Config.adress != "null") { textBox1.Text = "https://" + Config.adress; } else { textBox1.Text = ""; } textBox_password.Text = Config.textdeshifr; Config.textdeshifr = ""; }