private void makeNewKeyfileToolStripMenuItem_Click(object sender, EventArgs e) { MakeKey mk = OpenDialog.MakeKey; mk.Parent = this; mk.Show(); }
static OpenDialog() { EncryptMan.label1 = "File to be Encrypted:"; DecryptMan.label1 = "File to be Decrypted:"; EncryptMan.label6 = "If you are not familiar with the algorithm, leave the selections as they are."; DecryptMan.label6 = "For proper decryption your selections must be " + "identical to the selections specified in time of encryption."; EncryptMan.keyLength = DecryptMan.keyLength = 32; EncryptMan.comboBox1 = DecryptMan.comboBox1 = 1; EncryptMan.comboBox2 = DecryptMan.comboBox2 = 0; EncryptMan.textBox1 = DecryptMan.textBox1 = ""; EncryptMan.textBox2 = DecryptMan.textBox2 = ""; EncryptMan.checkBox1 = DecryptMan.checkBox1 = false; EncryptFin.Key = EncryptFin.IV = DecryptFin.IV = DecryptFin.Key = EncryptFin.Keyfile = ""; EncryptFin.Message = "Making a keyfile simplifies the process of decryption. IV(initialization vector) must be also filled in."; DecryptFin.Message = "The proper Key and Initialization Vector are required to proceed to the decryption."; EncryptWith.textBox1 = EncryptWith.textBox2 = EncryptWith.textBox3 = ""; DecryptWith.textBox1 = DecryptWith.textBox2 = DecryptWith.textBox3 = ""; EncryptWith.label1 = "File to be Encrypted:"; DecryptWith.label1 = "File to be Decrypted:"; EncryptWith.label6 = "Be careful not to delete the keyfile that you'll need in time of decryption."; DecryptWith.label6 = "Make sure that you use the right keyfile for the decryption."; EncryptWith.checkBox1 = DecryptWith.checkBox1 = false; forms[0] = new About { TopLevel = false }; forms[1] = new Manually { TopLevel = false }; forms[2] = new Final { TopLevel = false }; forms[3] = new MakeKey() { TopLevel = false }; forms[4] = new WithKeyfile() { TopLevel = false }; }