mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Update MainForm.cs
This commit is contained in:
parent
0fbd631836
commit
c0e3f7ecf4
1 changed files with 1 additions and 1 deletions
|
|
@ -54,6 +54,7 @@ private void DecryptAES()
|
|||
string opnfile = File.ReadAllText(OpenFile.FileName);
|
||||
string NameWithotPath = Path.GetFileName(OpenFile.FileName);
|
||||
string de;
|
||||
|
||||
if (ps.TheSalt != null)
|
||||
{
|
||||
de = AES.Decrypt(opnfile, TypedPassword.Value, ps.TheSalt, ps.HashAlgorithm, ps.PasswordIterations, ps.KeySize);
|
||||
|
|
@ -63,7 +64,6 @@ private void DecryptAES()
|
|||
de = AES.Decrypt(opnfile, TypedPassword.Value, null, ps.HashAlgorithm, ps.PasswordIterations, ps.KeySize);
|
||||
}
|
||||
|
||||
string de = AES.Decrypt(opnfile, TypedPassword.Value, null, ps.HashAlgorithm, ps.PasswordIterations, ps.KeySize);
|
||||
CustomRTB.Text = de;
|
||||
|
||||
Text = appName + NameWithotPath;
|
||||
|
|
|
|||
Loading…
Reference in a new issue