Removed able to getting salt from mac

This commit is contained in:
Alexander 2018-12-06 15:07:51 +02:00
parent 8abeff4f2b
commit 5f1aba25a2

View file

@ -32,44 +32,6 @@ public MainWindow()
customRTB.AllowDrop = true;
}
#region SaltMac
void SaltMAC()
{
var address = "";
var networkInterfaces = NetworkInterface.GetAllNetworkInterfaces();
foreach (var networkInterface in networkInterfaces)
{
if (networkInterface.NetworkInterfaceType == NetworkInterfaceType.Ethernet)
{
address = networkInterface.GetPhysicalAddress().ToString();
}
}
if (ps.FirstLaunch == false)
{
DialogResult res = new DialogResult();
using (new CenterWinDialog(this))
{
res = MessageBox.Show("Get The Salt from mac address? (You can change it yourself in Settings)", "Crypto Notepad",
MessageBoxButtons.YesNo, MessageBoxIcon.Question);
}
if (res == DialogResult.Yes)
{
ps.TheSalt = address;
ps.FirstLaunch = true;
}
if (res == DialogResult.No)
{
ps.FirstLaunch = true;
}
ps.Save();
}
}
#endregion
void DecryptAES()
{
publicVar.openFileName = Path.GetFileName(OpenFile.FileName);
@ -316,8 +278,6 @@ private void MainWindow_Load(object sender, EventArgs e)
panel2.Visible = true;
}
SaltMAC();
if (ps.AutoCheckUpdate == true)
{
Thread up = new Thread(() => сheckForUpdates(false));