public string decryptPasscode(string passcode, Dictionary <char, char> passKey) { string decPasscode = ""; decrypt code = new decrypt(); return(decPasscode = code.funcDecrypt(passcode, passKey)); }
private void UseKeyBTN_Click(object sender, EventArgs e) { decrypt _decryptObj = new decrypt(); string filename = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\encryptedCode.txt"; if ((File.Exists(filename)) && PswrdfrmKeyTxtBox.Text != "") { string originalPassword = _decryptObj.funcDecrypt(PswrdfrmKeyTxtBox.Text); MessageBox.Show(originalPassword, "Your orignal password is :"); } }
private void UseEmailBTN_Click(object sender, EventArgs e) { PassSecurity _passSecObj = new PassSecurity(); decrypt _decryptObj = new decrypt(); string filename = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\encryptedCode.txt"; if ((File.Exists(filename)) && PswrdfrmEmailTxtBox.Text != "") { string fetchedPasswordFrmDir = _passSecObj.fetchPasswordFromDirectory(filename, PswrdfrmEmailTxtBox.Text); string originalPassword = _decryptObj.funcDecrypt(fetchedPasswordFrmDir); MessageBox.Show(originalPassword, "Your orignal password is :"); } }