mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Removed able to getting salt from mac
This commit is contained in:
parent
8abeff4f2b
commit
5f1aba25a2
1 changed files with 0 additions and 40 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue