mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
testing
This commit is contained in:
parent
92f4fec08e
commit
f3ddd249b4
1 changed files with 1 additions and 30 deletions
|
|
@ -933,21 +933,11 @@ private void findToolStripMenuItem2_Click(object sender, EventArgs e)
|
|||
|
||||
private void documentationToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Process.Start("https://github.com/Sigmanor/Crypto-Notepad/wiki/Documentation");
|
||||
Process.Start("https://github.com/Sigmanor/Crypto-Notepad/wiki/Documentation");
|
||||
//MessageBox.Show("currentFilename: " + currentFilename);
|
||||
//MessageBox.Show("encryptionKey: " + PublicVar.encryptionKey.Get());
|
||||
//MessageBox.Show("TypedPassword: " + TypedPassword.Value);
|
||||
//MessageBox.Show("filePath: " + filePath);
|
||||
|
||||
int i = 1;
|
||||
while (i != 100)
|
||||
{
|
||||
i++;
|
||||
Text = i.ToString();
|
||||
saveToolStripMenuItem1_Click_1(sender, e);
|
||||
CheckFileSavedCorrectly(sender, e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void ToolsToolStripMenuItem_DropDownOpened(object sender, EventArgs e)
|
||||
|
|
@ -1379,24 +1369,5 @@ private void customRTB_KeyUp(object sender, KeyEventArgs e)
|
|||
shiftPresed = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void CheckFileSavedCorrectly(object sender, EventArgs e)
|
||||
{
|
||||
string de = "";
|
||||
try
|
||||
{
|
||||
string opnfile = File.ReadAllText(OpenFile.FileName);
|
||||
de = AES.Decrypt(opnfile, PublicVar.encryptionKey.Get(), null, ps.HashAlgorithm, ps.PasswordIterations, ps.KeySize);
|
||||
customRTB.Text = de;
|
||||
string cc2 = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
|
||||
customRTB.Select(Convert.ToInt32(cc2), 0);
|
||||
}
|
||||
catch (CryptographicException)
|
||||
{
|
||||
MessageBox.Show("Gotcha!");
|
||||
saveToolStripMenuItem1_Click_1(sender, e);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue