diff --git a/Crypto Notepad/Form1.cs b/Crypto Notepad/Form1.cs index cc9864f..38796d4 100644 --- a/Crypto Notepad/Form1.cs +++ b/Crypto Notepad/Form1.cs @@ -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));