mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Added message with recommendations to "Encryption" settings tab.
This commit is contained in:
parent
182a247aa3
commit
5030aa9274
6 changed files with 55 additions and 3 deletions
|
|
@ -141,6 +141,9 @@
|
|||
<setting name="statusPanelSize" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="encryptionToolTip" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
</Crypto_Notepad.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
|
|
|
|||
13
Crypto Notepad/Properties/Settings.Designer.cs
generated
13
Crypto Notepad/Properties/Settings.Designer.cs
generated
|
|
@ -582,5 +582,18 @@ public bool statusPanelSize {
|
|||
this["statusPanelSize"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||
public bool encryptionToolTip {
|
||||
get {
|
||||
return ((bool)(this["encryptionToolTip"]));
|
||||
}
|
||||
set {
|
||||
this["encryptionToolTip"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -131,5 +131,8 @@
|
|||
<Setting Name="statusPanelSize" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
<Setting Name="encryptionToolTip" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
20
Crypto Notepad/SettingsForm.Designer.cs
generated
20
Crypto Notepad/SettingsForm.Designer.cs
generated
|
|
@ -28,6 +28,7 @@ protected override void Dispose(bool disposing)
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingsForm));
|
||||
this.editorFontColorLabel = new System.Windows.Forms.Label();
|
||||
this.colorDialog = new System.Windows.Forms.ColorDialog();
|
||||
|
|
@ -58,6 +59,7 @@ private void InitializeComponent()
|
|||
this.associateCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.sendToCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.encryptionTabPage = new System.Windows.Forms.TabPage();
|
||||
this.encryptionToolTipLabel = new System.Windows.Forms.Label();
|
||||
this.passwordIterationsTextBox = new System.Windows.Forms.TextBox();
|
||||
this.hashAlgorithmComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.passwordIterationsLabel = new System.Windows.Forms.Label();
|
||||
|
|
@ -91,6 +93,7 @@ private void InitializeComponent()
|
|||
this.searchBackColorLabel = new System.Windows.Forms.Label();
|
||||
this.settingsNavigation = new System.Windows.Forms.ListBox();
|
||||
this.fontDialog = new System.Windows.Forms.FontDialog();
|
||||
this.settingsToolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.settingsTabControl.SuspendLayout();
|
||||
this.applicationTabPage.SuspendLayout();
|
||||
this.editorTabPage.SuspendLayout();
|
||||
|
|
@ -434,6 +437,7 @@ private void InitializeComponent()
|
|||
//
|
||||
this.encryptionTabPage.BackColor = System.Drawing.SystemColors.Window;
|
||||
this.encryptionTabPage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.encryptionTabPage.Controls.Add(this.encryptionToolTipLabel);
|
||||
this.encryptionTabPage.Controls.Add(this.passwordIterationsTextBox);
|
||||
this.encryptionTabPage.Controls.Add(this.hashAlgorithmComboBox);
|
||||
this.encryptionTabPage.Controls.Add(this.passwordIterationsLabel);
|
||||
|
|
@ -447,6 +451,18 @@ private void InitializeComponent()
|
|||
this.encryptionTabPage.TabIndex = 1;
|
||||
this.encryptionTabPage.Text = "enc";
|
||||
//
|
||||
// encryptionToolTipLabel
|
||||
//
|
||||
this.encryptionToolTipLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.encryptionToolTipLabel.Font = new System.Drawing.Font("Segoe UI", 8F);
|
||||
this.encryptionToolTipLabel.Location = new System.Drawing.Point(9, 140);
|
||||
this.encryptionToolTipLabel.Name = "encryptionToolTipLabel";
|
||||
this.encryptionToolTipLabel.Size = new System.Drawing.Size(223, 96);
|
||||
this.encryptionToolTipLabel.TabIndex = 7;
|
||||
this.encryptionToolTipLabel.Text = resources.GetString("encryptionToolTipLabel.Text");
|
||||
this.settingsToolTip.SetToolTip(this.encryptionToolTipLabel, "Left click to permanently hide this tooltip");
|
||||
this.encryptionToolTipLabel.MouseClick += new System.Windows.Forms.MouseEventHandler(this.EncryptionToolTipLabel_MouseClick);
|
||||
//
|
||||
// passwordIterationsTextBox
|
||||
//
|
||||
this.passwordIterationsTextBox.Location = new System.Drawing.Point(132, 62);
|
||||
|
|
@ -565,7 +581,7 @@ private void InitializeComponent()
|
|||
this.statusPanelSizeCheckBox.TabIndex = 7;
|
||||
this.statusPanelSizeCheckBox.Text = "Size";
|
||||
this.statusPanelSizeCheckBox.UseVisualStyleBackColor = true;
|
||||
this.statusPanelSizeCheckBox.Click += new System.EventHandler(this.statusPanelSizeCheckBox_Click);
|
||||
this.statusPanelSizeCheckBox.Click += new System.EventHandler(this.StatusPanelSizeCheckBox_Click);
|
||||
//
|
||||
// statusPanelLinesCheckBox
|
||||
//
|
||||
|
|
@ -936,5 +952,7 @@ private void InitializeComponent()
|
|||
private System.Windows.Forms.CheckBox statusPanelModifiedCheckBox;
|
||||
private System.Windows.Forms.CheckBox statusPanelSizeCheckBox;
|
||||
private System.Windows.Forms.GroupBox statusPanelLabelsGroupBox;
|
||||
private System.Windows.Forms.Label encryptionToolTipLabel;
|
||||
private System.Windows.Forms.ToolTip settingsToolTip;
|
||||
}
|
||||
}
|
||||
|
|
@ -57,6 +57,7 @@ private void LoadSettings()
|
|||
statusPanelModifiedCheckBox.Checked = settings.statusPanelModified;
|
||||
statusPanelSizeCheckBox.Checked = settings.statusPanelSize;
|
||||
statusPanelLabelsGroupBox.Visible = settings.statusPanelVisible;
|
||||
encryptionToolTipLabel.Visible = settings.encryptionToolTip;
|
||||
}
|
||||
|
||||
private static void AssociateExtension(string applicationExecutablePath, string extension)
|
||||
|
|
@ -619,15 +620,23 @@ private void StatusPanelModifiedCheckBox_Click(object sender, EventArgs e)
|
|||
main.StatusPanelFileInfo();
|
||||
}
|
||||
|
||||
private void statusPanelSizeCheckBox_Click(object sender, EventArgs e)
|
||||
private void StatusPanelSizeCheckBox_Click(object sender, EventArgs e)
|
||||
{
|
||||
MainForm main = Owner as MainForm;
|
||||
main.statusPanelSizeLabel.Visible = statusPanelSizeCheckBox.Checked;
|
||||
settings.statusPanelSize = statusPanelSizeCheckBox.Checked;
|
||||
main.StatusPanelFileInfo();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
private void EncryptionToolTipLabel_MouseClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (e.Button == MouseButtons.Left)
|
||||
{
|
||||
encryptionToolTipLabel.Visible = false;
|
||||
settings.encryptionToolTip = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -120,6 +120,12 @@
|
|||
<metadata name="colorDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="encryptionToolTipLabel.Text" xml:space="preserve">
|
||||
<value>For the best balance of performance && security is recommended to use SHA512 Hash / 256 Key size / above 2000000 Password iterations. But caution, if you change this parameters you will not able to decrypt previously encrypted files with old parameters.</value>
|
||||
</data>
|
||||
<metadata name="settingsToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>240, 17</value>
|
||||
</metadata>
|
||||
<metadata name="fontDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>131, 17</value>
|
||||
</metadata>
|
||||
|
|
|
|||
Loading…
Reference in a new issue