mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Compare commits
No commits in common. "master" and "v1.6.3" have entirely different histories.
56 changed files with 2977 additions and 5207 deletions
8
.github/FUNDING.yml
vendored
8
.github/FUNDING.yml
vendored
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||||
patreon: # Replace with a single Patreon username
|
patreon: # Replace with a single Patreon username
|
||||||
open_collective: #
|
open_collective: # Replace with a single Open Collective username
|
||||||
ko_fi:
|
ko_fi: sigmanor
|
||||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||||
liberapay:
|
liberapay: sigmanor
|
||||||
issuehunt: #
|
issuehunt: #
|
||||||
otechie: # Replace with a single Otechie username
|
otechie: # Replace with a single Otechie username
|
||||||
custom: https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Support-the-project
|
custom: paypal.me/sigmanor
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
||||||
## Enforcement
|
## Enforcement
|
||||||
|
|
||||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
reported by contacting the project team at dock-brunt-rarity@duck.com. All
|
reported by contacting the project team at sigmanor@pm.me. All
|
||||||
complaints will be reviewed and investigated and will result in a response that
|
complaints will be reviewed and investigated and will result in a response that
|
||||||
is deemed necessary and appropriate to the circumstances. The project team is
|
is deemed necessary and appropriate to the circumstances. The project team is
|
||||||
obligated to maintain confidentiality with regard to the reporter of an incident.
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,30 @@
|
||||||
> First off, thanks for taking the time to contribute :relaxed:
|
> First off, thanks for taking the time to contribute :relaxed:
|
||||||
Before starting, make sure that you visited the [projects](https://github.com/Crypto-Notepad/Crypto-Notepad/projects) and the opened/closed [issues](https://github.com/Sigmanor/Crypto-Notepad/issues) to be sure that your idea is not already planned or canceled. Checked out? Well then, let's start!
|
Before starting, make sure that you visited the project [todo](https://github.com/Sigmanor/Crypto-Notepad/wiki/TODO) list and opened/closed [issues](https://github.com/Sigmanor/Crypto-Notepad/issues) to be sure that your idea is not already planned. Checked out? Well then, let's start!
|
||||||
|
|
||||||
## How to contribute to Crypto Notepad
|
## How to contribute to Crypto Notepad
|
||||||
|
|
||||||
### Did you find any bug/have an idea how to improve the project?
|
### Did you find any bug/have an idea how to improve the project?
|
||||||
* Send me a message: [`email`](mailto:dock-brunt-rarity@duck.com)
|
* First of all you can send me a message: [`telegram`](https://t.me/Sigmanor) [`facebook`](https://www.fb.com/SlGMANOR) [`email`](mailto:sigmanor@pm.me)
|
||||||
* Create an [issue](https://github.com/Sigmanor/Crypto-Notepad/issues/new/choose).
|
* Secondly you can create an [issue](https://github.com/Sigmanor/Crypto-Notepad/issues/new/choose)
|
||||||
|
|
||||||
### You can help me fix some bug/implement a new feature?
|
### You can help me fix some bug/implement a new feature?
|
||||||
* Create a pull request, using [this](https://github.com/Sigmanor/Crypto-Notepad/blob/master/PULL_REQUEST_TEMPLATE.md) template.
|
* Create a pull request, using [this](https://github.com/Sigmanor/Crypto-Notepad/blob/master/PULL_REQUEST_TEMPLATE.md) template
|
||||||
|
|
||||||
### Issue labels explanation
|
### Issue labels explanation
|
||||||
* You can find the full list in [here](https://github.com/Sigmanor/Crypto-Notepad/issues/labels).
|
* You can find the full list in [here](https://github.com/Sigmanor/Crypto-Notepad/issues/labels)
|
||||||
|
|
||||||
### Naming conventions
|
|
||||||
The only rule: Do not use Hungarian notation or any other type identification in identifiers.
|
|
||||||
|
|
||||||
### Things that will never be in this project
|
### Things that will never be in this project
|
||||||
* Installer. Crypto Notepad will be always portable.
|
* Installer. Crypto Notepad will be always portable.
|
||||||
* Significant design changes. Crypto Notepad looks exactly as I want to see it.
|
* Significant design changes. Crypto Notepad looks exactly as I want to see it.
|
||||||
* Multiplatform. Crypto Notepad will be only for windows. Maybe sometime, but it will be as a completely new project.
|
* Multiplatform. Crypto Notepad will be only for windows. Maybe sometime, but it will be as a completely new project.
|
||||||
* Making from a simple notepad - a big combine to encrypt anything with different encryption algorithms. Crypto Notepad will be a simple app to encrypt/decrypt text files with AES algorithms.
|
* Making from a simple notepad - a big combine to encrypt anything with different encryption algorithms. Crypto Notepad will be a simple app to encrypt/decrypt text files with aes algorithm.
|
||||||
|
|
||||||
### Things you need to know about the source code (take courage)
|
### Things you need to know about the source code (take courage)
|
||||||
* Sometimes code is very bad.
|
* Sometimes code is very bad
|
||||||
* Sometimes code is illogical.
|
* Sometimes code is illogical
|
||||||
* Mostly code is have no comments.
|
* Mostly code is have no comments
|
||||||
* That's why you are very brave, if you decide to learn source code. :flushed:
|
* That's why you are very brave, if you decide to learn source code :flushed:
|
||||||
> If you can make the source code better. Your welcome!
|
> If you can make the source code better. Your welcome!
|
||||||
|
|
||||||
## Anything else?
|
## Anything else?
|
||||||
Any help will be useful. I'll be happy to any of your feedback or suggestions. Use your best judgment, and feel free to propose changes to Crypto Notepad. Thanks for attention. May the Force be with you young Contributor. :wink:
|
Any help will be useful. I'll be happy to any of your feedback or suggestions. Use your best judgment, and feel free to propose changes to Crypto Notepad. Thanks for attention. May the Force be with you young Contributor :wink:
|
||||||
|
|
|
||||||
|
|
@ -204,19 +204,16 @@ public static async Task<string> Decrypt(string cipherText, string password, str
|
||||||
{
|
{
|
||||||
// Metadata parsing error
|
// Metadata parsing error
|
||||||
DialogResult result = MessageBox.Show("Unable to parse file metadata.\nAttempt to open anyway?\n(May result in a \'Incorrect Key\' error if the salt is wrong.)",
|
DialogResult result = MessageBox.Show("Unable to parse file metadata.\nAttempt to open anyway?\n(May result in a \'Incorrect Key\' error if the salt is wrong.)",
|
||||||
"Missing or Corrupted Metadata", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
|
"Missing or Corrupted Metadata", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Asterisk);
|
||||||
if (result == DialogResult.Yes)
|
if (result == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
// Default initialization vector from builds v1.1.2 and older
|
// Default initialization vector from builds v1.1.2 and older
|
||||||
const string default_IV = "16CHARSLONG12345";
|
const string default_IV = "16CHARSLONG12345";
|
||||||
|
|
||||||
initialVectorBytes = Encoding.ASCII.GetBytes(default_IV);
|
initialVectorBytes = Encoding.ASCII.GetBytes(default_IV);
|
||||||
saltValueBytes = Encoding.ASCII.GetBytes(salt);
|
saltValueBytes = Encoding.ASCII.GetBytes(salt);
|
||||||
}
|
}
|
||||||
else
|
else { return null; }
|
||||||
{
|
|
||||||
PublicVar.metadataCorrupt = true;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
225
Crypto Notepad/AboutFrom.Designer.cs
generated
Normal file
225
Crypto Notepad/AboutFrom.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,225 @@
|
||||||
|
namespace Crypto_Notepad
|
||||||
|
{
|
||||||
|
partial class AboutFrom
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutFrom));
|
||||||
|
this.appVersionLabel = new System.Windows.Forms.Label();
|
||||||
|
this.appLogoPictureBox = new System.Windows.Forms.PictureBox();
|
||||||
|
this.thirdPartyDevLabel = new System.Windows.Forms.Label();
|
||||||
|
this.appInfoLabel1 = new System.Windows.Forms.LinkLabel();
|
||||||
|
this.appInfoLabel2 = new System.Windows.Forms.LinkLabel();
|
||||||
|
this.appInfoLabel3 = new System.Windows.Forms.LinkLabel();
|
||||||
|
this.contributorsLabel = new System.Windows.Forms.Label();
|
||||||
|
this.contributorsRichTextBox = new Crypto_Notepad.ExRichTextBox();
|
||||||
|
this.thirdPartyDevRichTextBox = new Crypto_Notepad.ExRichTextBox();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.appLogoPictureBox)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// appVersionLabel
|
||||||
|
//
|
||||||
|
this.appVersionLabel.AutoSize = true;
|
||||||
|
this.appVersionLabel.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.appVersionLabel.Font = new System.Drawing.Font("Consolas", 14.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.appVersionLabel.ForeColor = System.Drawing.SystemColors.Highlight;
|
||||||
|
this.appVersionLabel.Location = new System.Drawing.Point(5, 9);
|
||||||
|
this.appVersionLabel.Name = "appVersionLabel";
|
||||||
|
this.appVersionLabel.Size = new System.Drawing.Size(220, 22);
|
||||||
|
this.appVersionLabel.TabIndex = 0;
|
||||||
|
this.appVersionLabel.Text = "Crypto Notepad v1.0.0";
|
||||||
|
this.appVersionLabel.Click += new System.EventHandler(this.AppVersionLabel_Click);
|
||||||
|
//
|
||||||
|
// appLogoPictureBox
|
||||||
|
//
|
||||||
|
this.appLogoPictureBox.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.appLogoPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("appLogoPictureBox.Image")));
|
||||||
|
this.appLogoPictureBox.Location = new System.Drawing.Point(341, 2);
|
||||||
|
this.appLogoPictureBox.Name = "appLogoPictureBox";
|
||||||
|
this.appLogoPictureBox.Size = new System.Drawing.Size(77, 68);
|
||||||
|
this.appLogoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
|
this.appLogoPictureBox.TabIndex = 1;
|
||||||
|
this.appLogoPictureBox.TabStop = false;
|
||||||
|
this.appLogoPictureBox.Click += new System.EventHandler(this.AppLogoPictureBox_Click);
|
||||||
|
//
|
||||||
|
// thirdPartyDevLabel
|
||||||
|
//
|
||||||
|
this.thirdPartyDevLabel.AutoSize = true;
|
||||||
|
this.thirdPartyDevLabel.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.thirdPartyDevLabel.ForeColor = System.Drawing.SystemColors.Highlight;
|
||||||
|
this.thirdPartyDevLabel.Location = new System.Drawing.Point(5, 173);
|
||||||
|
this.thirdPartyDevLabel.Name = "thirdPartyDevLabel";
|
||||||
|
this.thirdPartyDevLabel.Size = new System.Drawing.Size(200, 18);
|
||||||
|
this.thirdPartyDevLabel.TabIndex = 4;
|
||||||
|
this.thirdPartyDevLabel.Text = "Third-party developments";
|
||||||
|
//
|
||||||
|
// appInfoLabel1
|
||||||
|
//
|
||||||
|
this.appInfoLabel1.ActiveLinkColor = System.Drawing.Color.White;
|
||||||
|
this.appInfoLabel1.AutoSize = true;
|
||||||
|
this.appInfoLabel1.DisabledLinkColor = System.Drawing.Color.White;
|
||||||
|
this.appInfoLabel1.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.appInfoLabel1.ForeColor = System.Drawing.SystemColors.Control;
|
||||||
|
this.appInfoLabel1.LinkArea = new System.Windows.Forms.LinkArea(38, 8);
|
||||||
|
this.appInfoLabel1.LinkColor = System.Drawing.Color.White;
|
||||||
|
this.appInfoLabel1.Location = new System.Drawing.Point(8, 38);
|
||||||
|
this.appInfoLabel1.Name = "appInfoLabel1";
|
||||||
|
this.appInfoLabel1.Size = new System.Drawing.Size(317, 19);
|
||||||
|
this.appInfoLabel1.TabIndex = 9;
|
||||||
|
this.appInfoLabel1.TabStop = true;
|
||||||
|
this.appInfoLabel1.Text = "This is an open-source app created by Sigmanor";
|
||||||
|
this.appInfoLabel1.UseCompatibleTextRendering = true;
|
||||||
|
this.appInfoLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.AppInfoLabel1_LinkClicked);
|
||||||
|
//
|
||||||
|
// appInfoLabel2
|
||||||
|
//
|
||||||
|
this.appInfoLabel2.ActiveLinkColor = System.Drawing.Color.White;
|
||||||
|
this.appInfoLabel2.AutoSize = true;
|
||||||
|
this.appInfoLabel2.DisabledLinkColor = System.Drawing.Color.White;
|
||||||
|
this.appInfoLabel2.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.appInfoLabel2.ForeColor = System.Drawing.SystemColors.Control;
|
||||||
|
this.appInfoLabel2.LinkArea = new System.Windows.Forms.LinkArea(18, 3);
|
||||||
|
this.appInfoLabel2.LinkColor = System.Drawing.Color.White;
|
||||||
|
this.appInfoLabel2.Location = new System.Drawing.Point(8, 57);
|
||||||
|
this.appInfoLabel2.Name = "appInfoLabel2";
|
||||||
|
this.appInfoLabel2.Size = new System.Drawing.Size(202, 19);
|
||||||
|
this.appInfoLabel2.TabIndex = 9;
|
||||||
|
this.appInfoLabel2.TabStop = true;
|
||||||
|
this.appInfoLabel2.Text = "Distributed under MIT license";
|
||||||
|
this.appInfoLabel2.UseCompatibleTextRendering = true;
|
||||||
|
this.appInfoLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.AppInfoLabel1_LinkClicked);
|
||||||
|
//
|
||||||
|
// appInfoLabel3
|
||||||
|
//
|
||||||
|
this.appInfoLabel3.ActiveLinkColor = System.Drawing.Color.White;
|
||||||
|
this.appInfoLabel3.AutoSize = true;
|
||||||
|
this.appInfoLabel3.DisabledLinkColor = System.Drawing.Color.White;
|
||||||
|
this.appInfoLabel3.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.appInfoLabel3.ForeColor = System.Drawing.SystemColors.Control;
|
||||||
|
this.appInfoLabel3.LinkArea = new System.Windows.Forms.LinkArea(52, 6);
|
||||||
|
this.appInfoLabel3.LinkColor = System.Drawing.Color.White;
|
||||||
|
this.appInfoLabel3.Location = new System.Drawing.Point(8, 75);
|
||||||
|
this.appInfoLabel3.Name = "appInfoLabel3";
|
||||||
|
this.appInfoLabel3.Size = new System.Drawing.Size(399, 19);
|
||||||
|
this.appInfoLabel3.TabIndex = 9;
|
||||||
|
this.appInfoLabel3.TabStop = true;
|
||||||
|
this.appInfoLabel3.Text = "The source code, issues and documentation posted on GitHub";
|
||||||
|
this.appInfoLabel3.UseCompatibleTextRendering = true;
|
||||||
|
this.appInfoLabel3.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.AppInfoLabel3_LinkClicked);
|
||||||
|
//
|
||||||
|
// contributorsLabel
|
||||||
|
//
|
||||||
|
this.contributorsLabel.AutoSize = true;
|
||||||
|
this.contributorsLabel.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.contributorsLabel.ForeColor = System.Drawing.SystemColors.Highlight;
|
||||||
|
this.contributorsLabel.Location = new System.Drawing.Point(5, 105);
|
||||||
|
this.contributorsLabel.Name = "contributorsLabel";
|
||||||
|
this.contributorsLabel.Size = new System.Drawing.Size(168, 18);
|
||||||
|
this.contributorsLabel.TabIndex = 4;
|
||||||
|
this.contributorsLabel.Text = "Contributors/testers";
|
||||||
|
//
|
||||||
|
// contributorsRichTextBox
|
||||||
|
//
|
||||||
|
this.contributorsRichTextBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
|
||||||
|
this.contributorsRichTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||||
|
this.contributorsRichTextBox.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.contributorsRichTextBox.ForeColor = System.Drawing.SystemColors.Control;
|
||||||
|
this.contributorsRichTextBox.Location = new System.Drawing.Point(-1, 126);
|
||||||
|
this.contributorsRichTextBox.Name = "contributorsRichTextBox";
|
||||||
|
this.contributorsRichTextBox.ReadOnly = true;
|
||||||
|
this.contributorsRichTextBox.RightMargin = 700;
|
||||||
|
this.contributorsRichTextBox.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
|
||||||
|
this.contributorsRichTextBox.ShowSelectionMargin = true;
|
||||||
|
this.contributorsRichTextBox.Size = new System.Drawing.Size(414, 40);
|
||||||
|
this.contributorsRichTextBox.TabIndex = 11;
|
||||||
|
this.contributorsRichTextBox.Text = "h5p9sl https://github.com/h5p9sl\nsmaragdus https://github.com/smaragdus";
|
||||||
|
this.contributorsRichTextBox.WordWrap = false;
|
||||||
|
this.contributorsRichTextBox.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.ContributorsRichTextBox_LinkClicked);
|
||||||
|
//
|
||||||
|
// thirdPartyDevRichTextBox
|
||||||
|
//
|
||||||
|
this.thirdPartyDevRichTextBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
|
||||||
|
this.thirdPartyDevRichTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||||
|
this.thirdPartyDevRichTextBox.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.thirdPartyDevRichTextBox.ForeColor = System.Drawing.SystemColors.Control;
|
||||||
|
this.thirdPartyDevRichTextBox.Location = new System.Drawing.Point(-1, 194);
|
||||||
|
this.thirdPartyDevRichTextBox.Name = "thirdPartyDevRichTextBox";
|
||||||
|
this.thirdPartyDevRichTextBox.ReadOnly = true;
|
||||||
|
this.thirdPartyDevRichTextBox.RightMargin = 700;
|
||||||
|
this.thirdPartyDevRichTextBox.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedHorizontal;
|
||||||
|
this.thirdPartyDevRichTextBox.ShowSelectionMargin = true;
|
||||||
|
this.thirdPartyDevRichTextBox.Size = new System.Drawing.Size(414, 141);
|
||||||
|
this.thirdPartyDevRichTextBox.TabIndex = 10;
|
||||||
|
this.thirdPartyDevRichTextBox.Text = resources.GetString("thirdPartyDevRichTextBox.Text");
|
||||||
|
this.thirdPartyDevRichTextBox.WordWrap = false;
|
||||||
|
this.thirdPartyDevRichTextBox.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.ThirdPartyDevRichTextBox_LinkClicked);
|
||||||
|
//
|
||||||
|
// AboutFrom
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
|
||||||
|
this.ClientSize = new System.Drawing.Size(411, 335);
|
||||||
|
this.Controls.Add(this.contributorsRichTextBox);
|
||||||
|
this.Controls.Add(this.thirdPartyDevRichTextBox);
|
||||||
|
this.Controls.Add(this.appInfoLabel3);
|
||||||
|
this.Controls.Add(this.appInfoLabel2);
|
||||||
|
this.Controls.Add(this.appInfoLabel1);
|
||||||
|
this.Controls.Add(this.appLogoPictureBox);
|
||||||
|
this.Controls.Add(this.appVersionLabel);
|
||||||
|
this.Controls.Add(this.contributorsLabel);
|
||||||
|
this.Controls.Add(this.thirdPartyDevLabel);
|
||||||
|
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.MaximizeBox = false;
|
||||||
|
this.MinimizeBox = false;
|
||||||
|
this.Name = "AboutFrom";
|
||||||
|
this.ShowInTaskbar = false;
|
||||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
|
this.Text = "About";
|
||||||
|
this.Load += new System.EventHandler(this.AboutWindow_Load);
|
||||||
|
this.Click += new System.EventHandler(this.AboutFrom_Click);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.appLogoPictureBox)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Label appVersionLabel;
|
||||||
|
private System.Windows.Forms.PictureBox appLogoPictureBox;
|
||||||
|
private System.Windows.Forms.Label thirdPartyDevLabel;
|
||||||
|
private System.Windows.Forms.LinkLabel appInfoLabel1;
|
||||||
|
private System.Windows.Forms.LinkLabel appInfoLabel2;
|
||||||
|
private System.Windows.Forms.LinkLabel appInfoLabel3;
|
||||||
|
private System.Windows.Forms.Label contributorsLabel;
|
||||||
|
private ExRichTextBox thirdPartyDevRichTextBox;
|
||||||
|
private ExRichTextBox contributorsRichTextBox;
|
||||||
|
}
|
||||||
|
}
|
||||||
80
Crypto Notepad/AboutFrom.cs
Normal file
80
Crypto Notepad/AboutFrom.cs
Normal file
|
|
@ -0,0 +1,80 @@
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace Crypto_Notepad
|
||||||
|
{
|
||||||
|
public partial class AboutFrom : Form
|
||||||
|
{
|
||||||
|
public AboutFrom()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*Form Events*/
|
||||||
|
private void AboutWindow_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Version vrs = new Version(Application.ProductVersion);
|
||||||
|
appVersionLabel.Text = string.Format(PublicVar.appName + " {0}.{1}.{2}", vrs.Major, vrs.Minor, vrs.Build);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AboutFrom_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
appLogoPictureBox.Focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override bool ProcessDialogKey(Keys keyData)
|
||||||
|
{
|
||||||
|
if (ModifierKeys == Keys.None && keyData == Keys.Escape)
|
||||||
|
{
|
||||||
|
Close();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return base.ProcessDialogKey(keyData);
|
||||||
|
}
|
||||||
|
/*Form Events*/
|
||||||
|
|
||||||
|
|
||||||
|
/*Main Information*/
|
||||||
|
private void AppVersionLabel_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Release-Notes");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AppInfoLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start("https://sigmanor.github.io/");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AppInfoLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/LICENSE");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AppInfoLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AppLogoPictureBox_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start("https://crypto-notepad.github.io/");
|
||||||
|
}
|
||||||
|
/*Main Information*/
|
||||||
|
|
||||||
|
|
||||||
|
/*Perform open links*/
|
||||||
|
private void ThirdPartyDevRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start(e.LinkText);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ContributorsRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
Process.Start(e.LinkText);
|
||||||
|
}
|
||||||
|
/*Perform open links*/
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -117,39 +117,270 @@
|
||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="randomColorTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<value>21, 17</value>
|
<data name="appLogoPictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
</metadata>
|
<value>
|
||||||
<metadata name="aboutToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH
|
||||||
<value>176, 17</value>
|
DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp
|
||||||
</metadata>
|
bGUAAEjHnZZ3VFTXFofPvXd6oc0wAlKG3rvAANJ7k15FYZgZYCgDDjM0sSGiAhFFRJoiSFDEgNFQJFZE
|
||||||
<data name="appInfoRichTextBox.Text" xml:space="preserve">
|
sRAUVLAHJAgoMRhFVCxvRtaLrqy89/Ly++Osb+2z97n77L3PWhcAkqcvl5cGSwGQyhPwgzyc6RGRUXTs
|
||||||
<value>This is an open-source app created by Sigmanor and licensed under MIT.
|
AIABHmCAKQBMVka6X7B7CBDJy82FniFyAl8EAfB6WLwCcNPQM4BOB/+fpFnpfIHomAARm7M5GSwRF4g4
|
||||||
The source code, issues and documentation posted on GitHub.
|
JUuQLrbPipgalyxmGCVmvihBEcuJOWGRDT77LLKjmNmpPLaIxTmns1PZYu4V8bZMIUfEiK+ICzO5nCwR
|
||||||
|
3xKxRoowlSviN+LYVA4zAwAUSWwXcFiJIjYRMYkfEuQi4uUA4EgJX3HcVyzgZAvEl3JJS8/hcxMSBXQd
|
||||||
Github: https://github.com/Crypto-Notepad/Crypto-Notepad
|
li7d1NqaQffkZKVwBALDACYrmcln013SUtOZvBwAFu/8WTLi2tJFRbY0tba0NDQzMv2qUP91829K3NtF
|
||||||
Website: https://crypto-notepad.github.io/
|
ehn4uWcQrf+L7a/80hoAYMyJarPziy2uCoDOLQDI3fti0zgAgKSobx3Xv7oPTTwviQJBuo2xcVZWlhGX
|
||||||
|
wzISF/QP/U+Hv6GvvmckPu6P8tBdOfFMYYqALq4bKy0lTcinZ6QzWRy64Z+H+B8H/nUeBkGceA6fwxNF
|
||||||
Contributors/testers:
|
hImmjMtLELWbx+YKuGk8Opf3n5r4D8P+pMW5FonS+BFQY4yA1HUqQH7tBygKESDR+8Vd/6NvvvgwIH55
|
||||||
|
4SqTi3P/7zf9Z8Gl4iWDm/A5ziUohM4S8jMX98TPEqABAUgCKpAHykAd6ABDYAasgC1wBG7AG/iDEBAJ
|
||||||
smaragdus https://github.com/smaragdus
|
VgMWSASpgA+yQB7YBApBMdgJ9oBqUAcaQTNoBcdBJzgFzoNL4Bq4AW6D+2AUTIBnYBa8BgsQBGEhMkSB
|
||||||
h5p9sl https://github.com/h5p9sl
|
5CEVSBPSh8wgBmQPuUG+UBAUCcVCCRAPEkJ50GaoGCqDqqF6qBn6HjoJnYeuQIPQXWgMmoZ+h97BCEyC
|
||||||
|
qbASrAUbwwzYCfaBQ+BVcAK8Bs6FC+AdcCXcAB+FO+Dz8DX4NjwKP4PnEIAQERqiihgiDMQF8UeikHiE
|
||||||
External libraries:
|
j6xHipAKpAFpRbqRPuQmMorMIG9RGBQFRUcZomxRnqhQFAu1BrUeVYKqRh1GdaB6UTdRY6hZ1Ec0Ga2I
|
||||||
|
1kfboL3QEegEdBa6EF2BbkK3oy+ib6Mn0K8xGAwNo42xwnhiIjFJmLWYEsw+TBvmHGYQM46Zw2Kx8lh9
|
||||||
CustomSettingsProvider: https://www.codeproject.com/Articles/20917/1
|
rB3WH8vECrCF2CrsUexZ7BB2AvsGR8Sp4Mxw7rgoHA+Xj6vAHcGdwQ3hJnELeCm8Jt4G749n43PwpfhG
|
||||||
TextBox Placeholder: https://www.codeproject.com/Articles/319910/0
|
fDf+On4Cv0CQJmgT7AghhCTCJkIloZVwkfCA8JJIJKoRrYmBRC5xI7GSeIx4mThGfEuSIemRXEjRJCFp
|
||||||
PasswordGenerator: https://github.com/prjseal/PasswordGenerator/
|
B+kQ6RzpLuklmUzWIjuSo8gC8g5yM/kC+RH5jQRFwkjCS4ItsUGiRqJDYkjiuSReUlPSSXK1ZK5kheQJ
|
||||||
OS Version Info: https://www.codeproject.com/Articles/73000/2
|
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
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
<data name="thirdPartyDevRichTextBox.Text" xml:space="preserve">
|
||||||
|
<value>Custom TextBox with Watermark: https://www.codeproject.com/Articles/319910/Custom-TextBox-with-watermark
|
||||||
|
CustomSettingsProvider: http://www.codeproject.com/Articles/20917/Settings-Provider
|
||||||
Farm-Fresh Web Icons: https://www.fatcow.com/free-icons
|
Farm-Fresh Web Icons: https://www.fatcow.com/free-icons
|
||||||
DotNetZip: https://www.nuget.org/packages/DotNetZip/
|
MsgBoxCenterParent: http://stackoverflow.com/a/2576220/4430027
|
||||||
|
PasswordGenerator: https://github.com/prjseal/PasswordGenerator/
|
||||||
Fugue Icons: https://p.yusukekamiyamane.com/
|
Fugue Icons: https://p.yusukekamiyamane.com/
|
||||||
Fody: https://github.com/Fody/Fody</value>
|
DotNetZip: https://www.nuget.org/packages/DotNetZip/
|
||||||
|
Fody: https://github.com/Fody/Fody
|
||||||
|
AES: http://www.codeproject.com/Answers/391219/AES#answer2</value>
|
||||||
</data>
|
</data>
|
||||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>94</value>
|
<value>44</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
AAABAAYAAAAAAAEAIAAwBwAAZgAAAICAAAABACAAKAgBAJYHAABAQAAAAQAgAChCAAC+DwEAMDAAAAEA
|
AAABAAYAAAAAAAEAIAAwBwAAZgAAAICAAAABACAAKAgBAJYHAABAQAAAAQAgAChCAAC+DwEAMDAAAAEA
|
||||||
|
|
@ -9,10 +9,10 @@
|
||||||
</configSections>
|
</configSections>
|
||||||
<startup>
|
<startup>
|
||||||
|
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/></startup>
|
||||||
<userSettings>
|
<userSettings>
|
||||||
<Crypto_Notepad.Properties.Settings>
|
<Crypto_Notepad.Properties.Settings>
|
||||||
<setting name="editorForeColor" serializeAs="String">
|
<setting name="editroForeColor" serializeAs="String">
|
||||||
<value>Black</value>
|
<value>Black</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="editorBackColor" serializeAs="String">
|
<setting name="editorBackColor" serializeAs="String">
|
||||||
|
|
@ -144,63 +144,6 @@
|
||||||
<setting name="encryptionHint" serializeAs="String">
|
<setting name="encryptionHint" serializeAs="String">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="passwordGeneratorLowercase" serializeAs="String">
|
|
||||||
<value>True</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="passwordGeneratorUppercase" serializeAs="String">
|
|
||||||
<value>True</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="passwordGeneratorNumeric" serializeAs="String">
|
|
||||||
<value>True</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="passwordGeneratorSpecial" serializeAs="String">
|
|
||||||
<value>True</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="passwordGeneratorLength" serializeAs="String">
|
|
||||||
<value>40</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="passwordGeneratorNumberOfStrings" serializeAs="String">
|
|
||||||
<value>10</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="TheSalt" serializeAs="String">
|
|
||||||
<value />
|
|
||||||
</setting>
|
|
||||||
<setting name="passwordGeneratorBrackets" serializeAs="String">
|
|
||||||
<value>False</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="passwordGeneratorAdditional" serializeAs="String">
|
|
||||||
<value>False</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="lockTimeout" serializeAs="String">
|
|
||||||
<value />
|
|
||||||
</setting>
|
|
||||||
<setting name="statusPanelReadonly" serializeAs="String">
|
|
||||||
<value>True</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="statusPanelWordWrap" serializeAs="String">
|
|
||||||
<value>True</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="clipboardClearTime" serializeAs="String">
|
|
||||||
<value />
|
|
||||||
</setting>
|
|
||||||
<setting name="statusPanelClipboard" serializeAs="String">
|
|
||||||
<value>True</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="clearClipboardAtClose" serializeAs="String">
|
|
||||||
<value>False</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="shortcutKeys" serializeAs="String">
|
|
||||||
<value>True</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="openTxtUnencrypted" serializeAs="String">
|
|
||||||
<value>False</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="trayMenu" serializeAs="String">
|
|
||||||
<value>False</value>
|
|
||||||
</setting>
|
|
||||||
<setting name="statusPanelPasteboard" serializeAs="String">
|
|
||||||
<value>False</value>
|
|
||||||
</setting>
|
|
||||||
</Crypto_Notepad.Properties.Settings>
|
</Crypto_Notepad.Properties.Settings>
|
||||||
</userSettings>
|
</userSettings>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
namespace Crypto_Notepad
|
namespace Crypto_Notepad
|
||||||
{
|
{
|
||||||
partial class ChangePasswordForm
|
partial class ChangeKeyForm
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
|
|
@ -29,17 +29,16 @@ protected override void Dispose(bool disposing)
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ChangePasswordForm));
|
|
||||||
this.acceptButton = new System.Windows.Forms.Button();
|
this.acceptButton = new System.Windows.Forms.Button();
|
||||||
this.mainPanel = new System.Windows.Forms.Panel();
|
this.mainPanel = new System.Windows.Forms.Panel();
|
||||||
this.lockPictureBox = new System.Windows.Forms.PictureBox();
|
this.lockPictureBox = new System.Windows.Forms.PictureBox();
|
||||||
this.showNewKeyPictureBox = new System.Windows.Forms.PictureBox();
|
this.showNewKeyPictureBox = new System.Windows.Forms.PictureBox();
|
||||||
this.showOldKeyPictureBox = new System.Windows.Forms.PictureBox();
|
this.showOldKeyPictureBox = new System.Windows.Forms.PictureBox();
|
||||||
|
this.oldKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
||||||
|
this.newKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
||||||
this.statusLabel = new System.Windows.Forms.Label();
|
this.statusLabel = new System.Windows.Forms.Label();
|
||||||
this.changeKeyFormToolTip = new System.Windows.Forms.ToolTip(this.components);
|
this.changeKeyFormToolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||||
this.passwordGeneratorButton = new System.Windows.Forms.Button();
|
this.passwordGeneratorButton = new System.Windows.Forms.Button();
|
||||||
this.oldKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
|
||||||
this.newKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
|
||||||
this.mainPanel.SuspendLayout();
|
this.mainPanel.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.showNewKeyPictureBox)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.showNewKeyPictureBox)).BeginInit();
|
||||||
|
|
@ -49,7 +48,6 @@ private void InitializeComponent()
|
||||||
// acceptButton
|
// acceptButton
|
||||||
//
|
//
|
||||||
this.acceptButton.Enabled = false;
|
this.acceptButton.Enabled = false;
|
||||||
this.acceptButton.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.acceptButton.Location = new System.Drawing.Point(211, 80);
|
this.acceptButton.Location = new System.Drawing.Point(211, 80);
|
||||||
this.acceptButton.Name = "acceptButton";
|
this.acceptButton.Name = "acceptButton";
|
||||||
this.acceptButton.Size = new System.Drawing.Size(53, 25);
|
this.acceptButton.Size = new System.Drawing.Size(53, 25);
|
||||||
|
|
@ -79,7 +77,7 @@ private void InitializeComponent()
|
||||||
this.lockPictureBox.Image = global::Crypto_Notepad.Properties.Resources.gnupg_keys;
|
this.lockPictureBox.Image = global::Crypto_Notepad.Properties.Resources.gnupg_keys;
|
||||||
this.lockPictureBox.Location = new System.Drawing.Point(8, 14);
|
this.lockPictureBox.Location = new System.Drawing.Point(8, 14);
|
||||||
this.lockPictureBox.Name = "lockPictureBox";
|
this.lockPictureBox.Name = "lockPictureBox";
|
||||||
this.lockPictureBox.Size = new System.Drawing.Size(48, 48);
|
this.lockPictureBox.Size = new System.Drawing.Size(47, 47);
|
||||||
this.lockPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
this.lockPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
||||||
this.lockPictureBox.TabIndex = 7;
|
this.lockPictureBox.TabIndex = 7;
|
||||||
this.lockPictureBox.TabStop = false;
|
this.lockPictureBox.TabStop = false;
|
||||||
|
|
@ -91,7 +89,7 @@ private void InitializeComponent()
|
||||||
this.showNewKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
|
this.showNewKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
|
||||||
this.showNewKeyPictureBox.Location = new System.Drawing.Point(269, 39);
|
this.showNewKeyPictureBox.Location = new System.Drawing.Point(269, 39);
|
||||||
this.showNewKeyPictureBox.Name = "showNewKeyPictureBox";
|
this.showNewKeyPictureBox.Name = "showNewKeyPictureBox";
|
||||||
this.showNewKeyPictureBox.Size = new System.Drawing.Size(19, 23);
|
this.showNewKeyPictureBox.Size = new System.Drawing.Size(18, 22);
|
||||||
this.showNewKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
this.showNewKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
||||||
this.showNewKeyPictureBox.TabIndex = 5;
|
this.showNewKeyPictureBox.TabIndex = 5;
|
||||||
this.showNewKeyPictureBox.TabStop = false;
|
this.showNewKeyPictureBox.TabStop = false;
|
||||||
|
|
@ -104,26 +102,54 @@ private void InitializeComponent()
|
||||||
this.showOldKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
|
this.showOldKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
|
||||||
this.showOldKeyPictureBox.Location = new System.Drawing.Point(269, 14);
|
this.showOldKeyPictureBox.Location = new System.Drawing.Point(269, 14);
|
||||||
this.showOldKeyPictureBox.Name = "showOldKeyPictureBox";
|
this.showOldKeyPictureBox.Name = "showOldKeyPictureBox";
|
||||||
this.showOldKeyPictureBox.Size = new System.Drawing.Size(19, 23);
|
this.showOldKeyPictureBox.Size = new System.Drawing.Size(18, 22);
|
||||||
this.showOldKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
this.showOldKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
||||||
this.showOldKeyPictureBox.TabIndex = 5;
|
this.showOldKeyPictureBox.TabIndex = 5;
|
||||||
this.showOldKeyPictureBox.TabStop = false;
|
this.showOldKeyPictureBox.TabStop = false;
|
||||||
this.showOldKeyPictureBox.Click += new System.EventHandler(this.ShowOldKeyPictureBox_Click);
|
this.showOldKeyPictureBox.Click += new System.EventHandler(this.ShowOldKeyPictureBox_Click);
|
||||||
//
|
//
|
||||||
|
// oldKeyTextBox
|
||||||
|
//
|
||||||
|
this.oldKeyTextBox.Location = new System.Drawing.Point(64, 14);
|
||||||
|
this.oldKeyTextBox.Name = "oldKeyTextBox";
|
||||||
|
this.oldKeyTextBox.Placeholder = "Old key";
|
||||||
|
this.oldKeyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
|
||||||
|
this.oldKeyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F);
|
||||||
|
this.oldKeyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
|
||||||
|
this.oldKeyTextBox.Size = new System.Drawing.Size(206, 22);
|
||||||
|
this.oldKeyTextBox.TabIndex = 0;
|
||||||
|
this.oldKeyTextBox.UseSystemPasswordChar = true;
|
||||||
|
this.oldKeyTextBox.TextChanged += new System.EventHandler(this.OldKeyTextBox_TextChanged);
|
||||||
|
this.oldKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OldKeyTextBox_KeyDown);
|
||||||
|
//
|
||||||
|
// newKeyTextBox
|
||||||
|
//
|
||||||
|
this.newKeyTextBox.Location = new System.Drawing.Point(64, 39);
|
||||||
|
this.newKeyTextBox.Name = "newKeyTextBox";
|
||||||
|
this.newKeyTextBox.Placeholder = "New key";
|
||||||
|
this.newKeyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
|
||||||
|
this.newKeyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F);
|
||||||
|
this.newKeyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
|
||||||
|
this.newKeyTextBox.Size = new System.Drawing.Size(206, 22);
|
||||||
|
this.newKeyTextBox.TabIndex = 1;
|
||||||
|
this.newKeyTextBox.UseSystemPasswordChar = true;
|
||||||
|
this.newKeyTextBox.TextChanged += new System.EventHandler(this.NewKeyTextBox_TextChanged);
|
||||||
|
this.newKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.NewKeyTextBox_KeyDown);
|
||||||
|
//
|
||||||
// statusLabel
|
// statusLabel
|
||||||
//
|
//
|
||||||
this.statusLabel.AutoSize = true;
|
this.statusLabel.AutoSize = true;
|
||||||
this.statusLabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
this.statusLabel.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
this.statusLabel.ForeColor = System.Drawing.Color.Black;
|
this.statusLabel.ForeColor = System.Drawing.Color.Black;
|
||||||
this.statusLabel.Location = new System.Drawing.Point(2, 85);
|
this.statusLabel.Location = new System.Drawing.Point(3, 83);
|
||||||
this.statusLabel.Name = "statusLabel";
|
this.statusLabel.Name = "statusLabel";
|
||||||
this.statusLabel.Size = new System.Drawing.Size(38, 15);
|
this.statusLabel.Size = new System.Drawing.Size(42, 17);
|
||||||
this.statusLabel.TabIndex = 7;
|
this.statusLabel.TabIndex = 7;
|
||||||
this.statusLabel.Text = "status";
|
this.statusLabel.Text = "status";
|
||||||
//
|
//
|
||||||
// passwordGeneratorButton
|
// passwordGeneratorButton
|
||||||
//
|
//
|
||||||
this.passwordGeneratorButton.Image = global::Crypto_Notepad.Properties.Resources.key_plus;
|
this.passwordGeneratorButton.Image = global::Crypto_Notepad.Properties.Resources.key__plus;
|
||||||
this.passwordGeneratorButton.Location = new System.Drawing.Point(266, 80);
|
this.passwordGeneratorButton.Location = new System.Drawing.Point(266, 80);
|
||||||
this.passwordGeneratorButton.Name = "passwordGeneratorButton";
|
this.passwordGeneratorButton.Name = "passwordGeneratorButton";
|
||||||
this.passwordGeneratorButton.Size = new System.Drawing.Size(25, 25);
|
this.passwordGeneratorButton.Size = new System.Drawing.Size(25, 25);
|
||||||
|
|
@ -132,37 +158,7 @@ private void InitializeComponent()
|
||||||
this.passwordGeneratorButton.UseVisualStyleBackColor = true;
|
this.passwordGeneratorButton.UseVisualStyleBackColor = true;
|
||||||
this.passwordGeneratorButton.Click += new System.EventHandler(this.PasswordGeneratorButton_Click);
|
this.passwordGeneratorButton.Click += new System.EventHandler(this.PasswordGeneratorButton_Click);
|
||||||
//
|
//
|
||||||
// oldKeyTextBox
|
// ChangeKeyForm
|
||||||
//
|
|
||||||
this.oldKeyTextBox.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.oldKeyTextBox.Location = new System.Drawing.Point(64, 14);
|
|
||||||
this.oldKeyTextBox.Name = "oldKeyTextBox";
|
|
||||||
this.oldKeyTextBox.Placeholder = "Old password";
|
|
||||||
this.oldKeyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
|
|
||||||
this.oldKeyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.oldKeyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
|
|
||||||
this.oldKeyTextBox.Size = new System.Drawing.Size(206, 23);
|
|
||||||
this.oldKeyTextBox.TabIndex = 0;
|
|
||||||
this.oldKeyTextBox.UseSystemPasswordChar = true;
|
|
||||||
this.oldKeyTextBox.TextChanged += new System.EventHandler(this.OldKeyTextBox_TextChanged);
|
|
||||||
this.oldKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OldKeyTextBox_KeyDown);
|
|
||||||
//
|
|
||||||
// newKeyTextBox
|
|
||||||
//
|
|
||||||
this.newKeyTextBox.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.newKeyTextBox.Location = new System.Drawing.Point(64, 39);
|
|
||||||
this.newKeyTextBox.Name = "newKeyTextBox";
|
|
||||||
this.newKeyTextBox.Placeholder = "New password";
|
|
||||||
this.newKeyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
|
|
||||||
this.newKeyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.newKeyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
|
|
||||||
this.newKeyTextBox.Size = new System.Drawing.Size(206, 23);
|
|
||||||
this.newKeyTextBox.TabIndex = 1;
|
|
||||||
this.newKeyTextBox.UseSystemPasswordChar = true;
|
|
||||||
this.newKeyTextBox.TextChanged += new System.EventHandler(this.NewKeyTextBox_TextChanged);
|
|
||||||
this.newKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.NewKeyTextBox_KeyDown);
|
|
||||||
//
|
|
||||||
// ChangePasswordForm
|
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
|
@ -173,13 +169,12 @@ private void InitializeComponent()
|
||||||
this.Controls.Add(this.mainPanel);
|
this.Controls.Add(this.mainPanel);
|
||||||
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.MinimizeBox = false;
|
this.MinimizeBox = false;
|
||||||
this.Name = "ChangePasswordForm";
|
this.Name = "ChangeKeyForm";
|
||||||
this.ShowInTaskbar = false;
|
this.ShowInTaskbar = false;
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
this.Text = "Change Password";
|
this.Text = "Change Key";
|
||||||
this.mainPanel.ResumeLayout(false);
|
this.mainPanel.ResumeLayout(false);
|
||||||
this.mainPanel.PerformLayout();
|
this.mainPanel.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).EndInit();
|
||||||
|
|
@ -6,46 +6,48 @@
|
||||||
|
|
||||||
namespace Crypto_Notepad
|
namespace Crypto_Notepad
|
||||||
{
|
{
|
||||||
public partial class ChangePasswordForm : Form
|
public partial class ChangeKeyForm : Form
|
||||||
{
|
{
|
||||||
public ChangePasswordForm()
|
public ChangeKeyForm()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
statusLabel.Text = "";
|
statusLabel.Text = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Methods
|
/*Buttons*/
|
||||||
private async void ChangePasswordStatus(string message, Color color)
|
private async void AcceptButton_Click(object sender, EventArgs e)
|
||||||
{
|
|
||||||
statusLabel.ForeColor = color;
|
|
||||||
statusLabel.Text = message;
|
|
||||||
oldKeyTextBox.Text = "";
|
|
||||||
newKeyTextBox.Text = "";
|
|
||||||
await Task.Delay(2500);
|
|
||||||
statusLabel.Text = "";
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
#region Event Handlers
|
|
||||||
private void AcceptButton_Click(object sender, EventArgs e)
|
|
||||||
{
|
{
|
||||||
oldKeyTextBox.Focus();
|
oldKeyTextBox.Focus();
|
||||||
if (oldKeyTextBox.Text == PublicVar.password.Get() & oldKeyTextBox.Text != newKeyTextBox.Text)
|
if (oldKeyTextBox.Text == PublicVar.encryptionKey.Get() & oldKeyTextBox.Text != newKeyTextBox.Text)
|
||||||
{
|
{
|
||||||
PublicVar.password.Set(newKeyTextBox.Text);
|
PublicVar.encryptionKey.Set(newKeyTextBox.Text);
|
||||||
PublicVar.passwordChanged = true;
|
PublicVar.keyChanged = true;
|
||||||
ChangePasswordStatus("Password was successfully changed", Color.Green);
|
statusLabel.ForeColor = Color.Green;
|
||||||
|
statusLabel.Text = "Key was successfully changed";
|
||||||
|
oldKeyTextBox.Text = "";
|
||||||
|
newKeyTextBox.Text = "";
|
||||||
|
await Task.Delay(3000);
|
||||||
|
statusLabel.Text = "";
|
||||||
}
|
}
|
||||||
else if (oldKeyTextBox.Text != PublicVar.password.Get())
|
else if (oldKeyTextBox.Text != PublicVar.encryptionKey.Get())
|
||||||
{
|
{
|
||||||
SystemSounds.Hand.Play();
|
SystemSounds.Hand.Play();
|
||||||
ChangePasswordStatus("Invalid old password", Color.Red);
|
statusLabel.ForeColor = Color.Red;
|
||||||
|
statusLabel.Text = "Invalid old key";
|
||||||
|
oldKeyTextBox.Text = "";
|
||||||
|
newKeyTextBox.Text = "";
|
||||||
|
await Task.Delay(2000);
|
||||||
|
statusLabel.Text = "";
|
||||||
}
|
}
|
||||||
else if (oldKeyTextBox.Text == newKeyTextBox.Text)
|
else if(oldKeyTextBox.Text == newKeyTextBox.Text)
|
||||||
{
|
{
|
||||||
SystemSounds.Hand.Play();
|
SystemSounds.Hand.Play();
|
||||||
ChangePasswordStatus("New password is the same as old", Color.Red);
|
statusLabel.ForeColor = Color.Red;
|
||||||
|
statusLabel.Text = "New key is the same as old";
|
||||||
|
oldKeyTextBox.Text = "";
|
||||||
|
newKeyTextBox.Text = "";
|
||||||
|
await Task.Delay(2000);
|
||||||
|
statusLabel.Text = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -58,7 +60,10 @@ private void PasswordGeneratorButton_Click(object sender, EventArgs e)
|
||||||
passwordGeneratorFrom.Show(this);
|
passwordGeneratorFrom.Show(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*Buttons*/
|
||||||
|
|
||||||
|
|
||||||
|
/*Enter keys area*/
|
||||||
private void ShowOldKeyPictureBox_Click(object sender, EventArgs e)
|
private void ShowOldKeyPictureBox_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (oldKeyTextBox.UseSystemPasswordChar)
|
if (oldKeyTextBox.UseSystemPasswordChar)
|
||||||
|
|
@ -143,7 +148,7 @@ private void OldKeyTextBox_KeyDown(object sender, KeyEventArgs e)
|
||||||
AcceptButton_Click(sender, e);
|
AcceptButton_Click(sender, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
/*Enter keys area*/
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -120,9 +120,6 @@
|
||||||
<metadata name="acceptButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="acceptButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="mainPanel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="lockPictureBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="lockPictureBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|
@ -138,35 +135,13 @@
|
||||||
<metadata name="newKeyTextBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="newKeyTextBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="statusLabel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="changeKeyFormToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="changeKeyFormToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="passwordGeneratorButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="passwordGeneratorButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>
|
|
||||||
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA
|
|
||||||
AAD///8A////AP///wAAAAACAAAADAAAABoAGjFZAC1XvQAYLmAAAAArAAAAHgAAABAAAAAE////AP//
|
|
||||||
/wD///8A////AP///wD///8AAAAAAQAAAAYAAAANADNdqIXO5v8AM12pACM+TwAAAA8AAAAIAAAAAv//
|
|
||||||
/wD///8A////AP///wD///8A////AAAAAAAAAAAAAC9PAAA+aKGDzOX/fcrk/wA+aaIAL08AAAAAAAAA
|
|
||||||
AAD///8A////AP///wD///8A////AP///wAAAAAAADlZAABLdgAAS3apg8zl/wBLdqkAS3YuAEp0AAAV
|
|
||||||
IAAAAAAA////AP///wD///8A////AP///wD///8AAFR/AABUfwAAVH8AAFR/toPM5f92wtz2AFR/tgBU
|
|
||||||
fwAAVH8AAD9gAP///wD///8A////AP///wD///8A////AABVgAAAVYAAAFWAAABVgLWDzOX/AFWAtQBV
|
|
||||||
gC4AVYAAAFaBAABXgwD///8A////AP///wD///8A////AP///wAAWYUAAFaBAABVgAAAVYCxg8zl/2a4
|
|
||||||
1f8AVYCxAFWAAABWgQAAWYUA////AP///wD///8A////AP///wD///8AAFmFAABWgQUAVYBBAFWArIPM
|
|
||||||
5f9hs9L/AFWArABVgEEAVoEFAFmFAP///wD///8A////AP///wD///8A////AABZhQcAWIRtPo6xxXzD
|
|
||||||
4OtyvNr/W67O/1ev0usshq3FAFiEbQBZhQf///8A////AP///wD///8A////AP///wABXoxLVKTFzJba
|
|
||||||
9v+IzO7/Z7LT/0yixf9Nr9f/Ysbt/zuZwswBXoxL////AP///wD///8A////AP///wD///8AAWOUhZnf
|
|
||||||
9/ea3vj/ltr1/4HK5f9uvdr/asPk/2nK8P9pzfT3AWOUhf///wD///8A////AP///wD///8A////AAJq
|
|
||||||
npKh5f7/EJixzgCQqMkAkKjJAJCoyQCQqMkJlrDObtP6/wJqnpL///8A////AP///wD///8A////AP//
|
|
||||||
/wACcKhxjNfx60Wry90AhqSCAImlGQCJpRkAhqSCKaLH3WrK7+sCcKhx////AP///wD///8A////AP//
|
|
||||||
/wD///8AAnawLyeRw6Sd4fn/RaHG1g96pboLeKK6KZS81nfR8/8ij8KkAnawL////wD///8A////AP//
|
|
||||||
/wD///8A////AAN7twEDfLlMKZbJoX7O7d2N1ez/gMzm/23E5d0llMmhA3y5TAN7twH///8A////AP//
|
|
||||||
/wD///8A////AP///wADe7cAA369AQOAvy0DgL9pA4C/gwOAv4MDgL9pA4C/LQN+vQEDe7cA////AP//
|
|
||||||
/wD///8A4AcAAOAHAAD8PwAA/D8AAPw/AAD8PwAA/D8AAPAPAADgBwAA4AcAAOAHAADgBwAA4AcAAOAH
|
|
||||||
AADgBwAA8A8AAA==
|
|
||||||
</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
</root>
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>Crypto_Notepad</RootNamespace>
|
<RootNamespace>Crypto_Notepad</RootNamespace>
|
||||||
<AssemblyName>Crypto Notepad</AssemblyName>
|
<AssemblyName>Crypto Notepad</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<TargetFrameworkProfile>
|
<TargetFrameworkProfile>
|
||||||
</TargetFrameworkProfile>
|
</TargetFrameworkProfile>
|
||||||
|
|
@ -25,8 +25,6 @@
|
||||||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
|
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
|
||||||
<RunCodeAnalysis>False</RunCodeAnalysis>
|
<RunCodeAnalysis>False</RunCodeAnalysis>
|
||||||
<SourceAnalysisOverrideSettingsFile>C:\Users\Alex\AppData\Roaming\ICSharpCode/SharpDevelop4\Settings.SourceAnalysis</SourceAnalysisOverrideSettingsFile>
|
<SourceAnalysisOverrideSettingsFile>C:\Users\Alex\AppData\Roaming\ICSharpCode/SharpDevelop4\Settings.SourceAnalysis</SourceAnalysisOverrideSettingsFile>
|
||||||
<NuGetPackageImportStamp>
|
|
||||||
</NuGetPackageImportStamp>
|
|
||||||
<PublishUrl>publish\</PublishUrl>
|
<PublishUrl>publish\</PublishUrl>
|
||||||
<Install>true</Install>
|
<Install>true</Install>
|
||||||
<InstallFrom>Disk</InstallFrom>
|
<InstallFrom>Disk</InstallFrom>
|
||||||
|
|
@ -41,6 +39,8 @@
|
||||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
|
<NuGetPackageImportStamp>
|
||||||
|
</NuGetPackageImportStamp>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
|
@ -56,15 +56,14 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>embedded</DebugType>
|
<DebugType>PdbOnly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>True</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||||
<Prefer32Bit>false</Prefer32Bit>
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||||
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
|
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
|
||||||
|
|
@ -79,24 +78,17 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<SignManifests>false</SignManifests>
|
<SignManifests>false</SignManifests>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<NoWin32Manifest>true</NoWin32Manifest>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Costura, Version=4.1.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
|
<Reference Include="Costura, Version=4.1.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll</HintPath>
|
<HintPath>..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Microsoft.VisualBasic" />
|
<Reference Include="Microsoft.VisualBasic" />
|
||||||
<Reference Include="PasswordGenerator, Version=2.0.5.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="PasswordGenerator, Version=2.0.1.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\PasswordGenerator.2.0.5\lib\netstandard2.0\PasswordGenerator.dll</HintPath>
|
<HintPath>..\packages\PasswordGenerator.2.0.1\lib\netstandard2.0\PasswordGenerator.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.configuration" />
|
<Reference Include="System.configuration" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Diagnostics.Contracts" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
|
@ -107,47 +99,43 @@
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Forms\AboutFrom.cs">
|
<Compile Include="AboutFrom.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Forms\AboutFrom.Designer.cs">
|
<Compile Include="AboutFrom.Designer.cs">
|
||||||
<DependentUpon>AboutFrom.cs</DependentUpon>
|
<DependentUpon>AboutFrom.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="External Libraries\AES.cs" />
|
<Compile Include="AES.cs" />
|
||||||
<Compile Include="Forms\ChangePasswordForm.cs">
|
<Compile Include="ChangeKeyForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Forms\ChangePasswordForm.Designer.cs">
|
<Compile Include="ChangeKeyForm.Designer.cs">
|
||||||
<DependentUpon>ChangePasswordForm.cs</DependentUpon>
|
<DependentUpon>ChangeKeyForm.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="External Libraries\EncryptedString.cs" />
|
<Compile Include="EncryptedString.cs" />
|
||||||
<Compile Include="External Libraries\HideCaretRichTextBox.cs">
|
<Compile Include="MainForm.cs">
|
||||||
<SubType>Component</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Forms\MainForm.cs">
|
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Forms\MainForm.Designer.cs">
|
<Compile Include="MainForm.Designer.cs">
|
||||||
<DependentUpon>MainForm.cs</DependentUpon>
|
<DependentUpon>MainForm.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Forms\EnterPasswordForm.cs">
|
<Compile Include="EnterKeyForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Forms\EnterPasswordForm.Designer.cs">
|
<Compile Include="EnterKeyForm.Designer.cs">
|
||||||
<DependentUpon>EnterPasswordForm.cs</DependentUpon>
|
<DependentUpon>EnterKeyForm.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="External Libraries\MsgBoxCenterParent.cs" />
|
<Compile Include="MsgBoxCenterParent.cs" />
|
||||||
<Compile Include="External Libraries\ExRichTextBox.cs">
|
<Compile Include="ExRichTextBox.cs">
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="External Libraries\OSVersionInfoClass.cs" />
|
<Compile Include="PasswordGeneratorFrom.cs">
|
||||||
<Compile Include="Forms\PasswordGeneratorFrom.cs">
|
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Forms\PasswordGeneratorFrom.Designer.cs">
|
<Compile Include="PasswordGeneratorFrom.Designer.cs">
|
||||||
<DependentUpon>PasswordGeneratorFrom.cs</DependentUpon>
|
<DependentUpon>PasswordGeneratorFrom.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="External Libraries\PortableSettingsProvider.cs" />
|
<Compile Include="PortableSettingsProvider.cs" />
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Properties\Resources.Designer.cs">
|
<Compile Include="Properties\Resources.Designer.cs">
|
||||||
|
|
@ -155,29 +143,29 @@
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Forms\SettingsForm.cs">
|
<Compile Include="SettingsForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Forms\SettingsForm.Designer.cs">
|
<Compile Include="SettingsForm.Designer.cs">
|
||||||
<DependentUpon>SettingsForm.cs</DependentUpon>
|
<DependentUpon>SettingsForm.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="External Libraries\PlaceholderTextBox.cs">
|
<Compile Include="PlaceholderTextBox.cs">
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="External Libraries\Methods.cs" />
|
<Compile Include="WinFormsExtensions.cs" />
|
||||||
<EmbeddedResource Include="Forms\AboutFrom.resx">
|
<EmbeddedResource Include="AboutFrom.resx">
|
||||||
<DependentUpon>AboutFrom.cs</DependentUpon>
|
<DependentUpon>AboutFrom.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Forms\ChangePasswordForm.resx">
|
<EmbeddedResource Include="ChangeKeyForm.resx">
|
||||||
<DependentUpon>ChangePasswordForm.cs</DependentUpon>
|
<DependentUpon>ChangeKeyForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Forms\MainForm.resx">
|
<EmbeddedResource Include="MainForm.resx">
|
||||||
<DependentUpon>MainForm.cs</DependentUpon>
|
<DependentUpon>MainForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Forms\EnterPasswordForm.resx">
|
<EmbeddedResource Include="EnterKeyForm.resx">
|
||||||
<DependentUpon>EnterPasswordForm.cs</DependentUpon>
|
<DependentUpon>EnterKeyForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Forms\PasswordGeneratorFrom.resx">
|
<EmbeddedResource Include="PasswordGeneratorFrom.resx">
|
||||||
<DependentUpon>PasswordGeneratorFrom.cs</DependentUpon>
|
<DependentUpon>PasswordGeneratorFrom.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Properties\Resources.resx">
|
<EmbeddedResource Include="Properties\Resources.resx">
|
||||||
|
|
@ -185,7 +173,7 @@
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Forms\SettingsForm.resx">
|
<EmbeddedResource Include="SettingsForm.resx">
|
||||||
<DependentUpon>SettingsForm.cs</DependentUpon>
|
<DependentUpon>SettingsForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
|
|
@ -203,12 +191,10 @@
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="Resources\clock--plus.png" />
|
<None Include="Resources\key--plus.png" />
|
||||||
<None Include="Resources\clock_add.png" />
|
|
||||||
<None Include="Resources\clipboard-text.png" />
|
|
||||||
<None Include="Resources\Updater.exe" />
|
<None Include="Resources\Updater.exe" />
|
||||||
<None Include="Resources\application.png" />
|
<None Include="Resources\Ionic.Zip.dll" />
|
||||||
<None Include="Resources\application-dock-180.png" />
|
<None Include="bin\Debug\Ionic.Zip.dll" />
|
||||||
<Content Include="Notepad_Lock.ico" />
|
<Content Include="Notepad_Lock.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
@ -244,16 +230,15 @@
|
||||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||||
</COMReference>
|
</COMReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ErrorText>Данный проект ссылается на пакеты NuGet, отсутствующие на этом компьютере. Используйте восстановление пакетов NuGet, чтобы скачать их. Дополнительную информацию см. по адресу: http://go.microsoft.com/fwlink/?LinkID=322105. Отсутствует следующий файл: {0}.</ErrorText>
|
<ErrorText>Данный проект ссылается на пакеты NuGet, отсутствующие на этом компьютере. Используйте восстановление пакетов NuGet, чтобы скачать их. Дополнительную информацию см. по адресу: http://go.microsoft.com/fwlink/?LinkID=322105. Отсутствует следующий файл: {0}.</ErrorText>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Error Condition="!Exists('..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props'))" />
|
<Error Condition="!Exists('..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props'))" />
|
||||||
<Error Condition="!Exists('..\packages\Fody.6.0.6\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.0.6\build\Fody.targets'))" />
|
<Error Condition="!Exists('..\packages\Fody.6.0.4\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.0.4\build\Fody.targets'))" />
|
||||||
</Target>
|
</Target>
|
||||||
<Import Project="..\packages\Fody.6.0.6\build\Fody.targets" Condition="Exists('..\packages\Fody.6.0.6\build\Fody.targets')" />
|
<Import Project="..\packages\Fody.6.0.4\build\Fody.targets" Condition="Exists('..\packages\Fody.6.0.4\build\Fody.targets')" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
<Target Name="BeforeBuild">
|
<Target Name="BeforeBuild">
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
namespace Crypto_Notepad
|
namespace Crypto_Notepad
|
||||||
{
|
{
|
||||||
partial class EnterPasswordForm
|
partial class EnterKeyForm
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
|
|
@ -29,15 +29,15 @@ protected override void Dispose(bool disposing)
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EnterPasswordForm));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EnterKeyForm));
|
||||||
this.okButton = new System.Windows.Forms.Button();
|
this.okButton = new System.Windows.Forms.Button();
|
||||||
this.mainPanel = new System.Windows.Forms.Panel();
|
this.mainPanel = new System.Windows.Forms.Panel();
|
||||||
this.lockPictureBox = new System.Windows.Forms.PictureBox();
|
this.lockPictureBox = new System.Windows.Forms.PictureBox();
|
||||||
this.fileNameLabel = new System.Windows.Forms.Label();
|
this.fileNameLabel = new System.Windows.Forms.Label();
|
||||||
this.keyTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
|
||||||
this.showKeyPictureBox = new System.Windows.Forms.PictureBox();
|
this.showKeyPictureBox = new System.Windows.Forms.PictureBox();
|
||||||
this.enterKeyFormToolTip = new System.Windows.Forms.ToolTip(this.components);
|
this.enterKeyFormToolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||||
this.passwordGeneratorButton = new System.Windows.Forms.Button();
|
this.passwordGeneratorButton = new System.Windows.Forms.Button();
|
||||||
|
this.keyTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
||||||
this.mainPanel.SuspendLayout();
|
this.mainPanel.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.showKeyPictureBox)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.showKeyPictureBox)).BeginInit();
|
||||||
|
|
@ -46,7 +46,6 @@ private void InitializeComponent()
|
||||||
// okButton
|
// okButton
|
||||||
//
|
//
|
||||||
this.okButton.Enabled = false;
|
this.okButton.Enabled = false;
|
||||||
this.okButton.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.okButton.Location = new System.Drawing.Point(211, 80);
|
this.okButton.Location = new System.Drawing.Point(211, 80);
|
||||||
this.okButton.Name = "okButton";
|
this.okButton.Name = "okButton";
|
||||||
this.okButton.Size = new System.Drawing.Size(53, 25);
|
this.okButton.Size = new System.Drawing.Size(53, 25);
|
||||||
|
|
@ -75,7 +74,7 @@ private void InitializeComponent()
|
||||||
this.lockPictureBox.Image = global::Crypto_Notepad.Properties.Resources.key_solid;
|
this.lockPictureBox.Image = global::Crypto_Notepad.Properties.Resources.key_solid;
|
||||||
this.lockPictureBox.Location = new System.Drawing.Point(8, 14);
|
this.lockPictureBox.Location = new System.Drawing.Point(8, 14);
|
||||||
this.lockPictureBox.Name = "lockPictureBox";
|
this.lockPictureBox.Name = "lockPictureBox";
|
||||||
this.lockPictureBox.Size = new System.Drawing.Size(48, 48);
|
this.lockPictureBox.Size = new System.Drawing.Size(47, 47);
|
||||||
this.lockPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
this.lockPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
||||||
this.lockPictureBox.TabIndex = 6;
|
this.lockPictureBox.TabIndex = 6;
|
||||||
this.lockPictureBox.TabStop = false;
|
this.lockPictureBox.TabStop = false;
|
||||||
|
|
@ -83,29 +82,13 @@ private void InitializeComponent()
|
||||||
// fileNameLabel
|
// fileNameLabel
|
||||||
//
|
//
|
||||||
this.fileNameLabel.AutoEllipsis = true;
|
this.fileNameLabel.AutoEllipsis = true;
|
||||||
this.fileNameLabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.fileNameLabel.Location = new System.Drawing.Point(61, 14);
|
this.fileNameLabel.Location = new System.Drawing.Point(61, 14);
|
||||||
this.fileNameLabel.Name = "fileNameLabel";
|
this.fileNameLabel.Name = "fileNameLabel";
|
||||||
this.fileNameLabel.Size = new System.Drawing.Size(221, 13);
|
this.fileNameLabel.Size = new System.Drawing.Size(196, 13);
|
||||||
this.fileNameLabel.TabIndex = 6;
|
this.fileNameLabel.TabIndex = 6;
|
||||||
this.fileNameLabel.Text = "File name";
|
this.fileNameLabel.Text = "File name";
|
||||||
this.fileNameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
this.fileNameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
//
|
//
|
||||||
// keyTextBox
|
|
||||||
//
|
|
||||||
this.keyTextBox.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.keyTextBox.Location = new System.Drawing.Point(64, 39);
|
|
||||||
this.keyTextBox.Name = "keyTextBox";
|
|
||||||
this.keyTextBox.Placeholder = "Password";
|
|
||||||
this.keyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
|
|
||||||
this.keyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.keyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
|
|
||||||
this.keyTextBox.Size = new System.Drawing.Size(206, 23);
|
|
||||||
this.keyTextBox.TabIndex = 0;
|
|
||||||
this.keyTextBox.UseSystemPasswordChar = true;
|
|
||||||
this.keyTextBox.TextChanged += new System.EventHandler(this.KeyTextBox_TextChanged);
|
|
||||||
this.keyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KeyTextBox_KeyDown);
|
|
||||||
//
|
|
||||||
// showKeyPictureBox
|
// showKeyPictureBox
|
||||||
//
|
//
|
||||||
this.showKeyPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
this.showKeyPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
|
@ -114,7 +97,7 @@ private void InitializeComponent()
|
||||||
this.showKeyPictureBox.InitialImage = global::Crypto_Notepad.Properties.Resources.eye_half;
|
this.showKeyPictureBox.InitialImage = global::Crypto_Notepad.Properties.Resources.eye_half;
|
||||||
this.showKeyPictureBox.Location = new System.Drawing.Point(269, 39);
|
this.showKeyPictureBox.Location = new System.Drawing.Point(269, 39);
|
||||||
this.showKeyPictureBox.Name = "showKeyPictureBox";
|
this.showKeyPictureBox.Name = "showKeyPictureBox";
|
||||||
this.showKeyPictureBox.Size = new System.Drawing.Size(19, 23);
|
this.showKeyPictureBox.Size = new System.Drawing.Size(18, 22);
|
||||||
this.showKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
this.showKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
|
||||||
this.showKeyPictureBox.TabIndex = 3;
|
this.showKeyPictureBox.TabIndex = 3;
|
||||||
this.showKeyPictureBox.TabStop = false;
|
this.showKeyPictureBox.TabStop = false;
|
||||||
|
|
@ -122,7 +105,7 @@ private void InitializeComponent()
|
||||||
//
|
//
|
||||||
// passwordGeneratorButton
|
// passwordGeneratorButton
|
||||||
//
|
//
|
||||||
this.passwordGeneratorButton.Image = global::Crypto_Notepad.Properties.Resources.key_plus;
|
this.passwordGeneratorButton.Image = global::Crypto_Notepad.Properties.Resources.key__plus;
|
||||||
this.passwordGeneratorButton.Location = new System.Drawing.Point(266, 80);
|
this.passwordGeneratorButton.Location = new System.Drawing.Point(266, 80);
|
||||||
this.passwordGeneratorButton.Name = "passwordGeneratorButton";
|
this.passwordGeneratorButton.Name = "passwordGeneratorButton";
|
||||||
this.passwordGeneratorButton.Size = new System.Drawing.Size(25, 25);
|
this.passwordGeneratorButton.Size = new System.Drawing.Size(25, 25);
|
||||||
|
|
@ -131,7 +114,21 @@ private void InitializeComponent()
|
||||||
this.passwordGeneratorButton.UseVisualStyleBackColor = true;
|
this.passwordGeneratorButton.UseVisualStyleBackColor = true;
|
||||||
this.passwordGeneratorButton.Click += new System.EventHandler(this.PasswordGeneratorButton_Click);
|
this.passwordGeneratorButton.Click += new System.EventHandler(this.PasswordGeneratorButton_Click);
|
||||||
//
|
//
|
||||||
// EnterPasswordForm
|
// keyTextBox
|
||||||
|
//
|
||||||
|
this.keyTextBox.Location = new System.Drawing.Point(64, 39);
|
||||||
|
this.keyTextBox.Name = "keyTextBox";
|
||||||
|
this.keyTextBox.Placeholder = "Encryption key";
|
||||||
|
this.keyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
|
||||||
|
this.keyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F);
|
||||||
|
this.keyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
|
||||||
|
this.keyTextBox.Size = new System.Drawing.Size(206, 22);
|
||||||
|
this.keyTextBox.TabIndex = 0;
|
||||||
|
this.keyTextBox.UseSystemPasswordChar = true;
|
||||||
|
this.keyTextBox.TextChanged += new System.EventHandler(this.KeyTextBox_TextChanged);
|
||||||
|
this.keyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KeyTextBox_KeyDown);
|
||||||
|
//
|
||||||
|
// EnterKeyForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
|
@ -144,11 +141,11 @@ private void InitializeComponent()
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.MinimizeBox = false;
|
this.MinimizeBox = false;
|
||||||
this.Name = "EnterPasswordForm";
|
this.Name = "EnterKeyForm";
|
||||||
this.Text = "Crypto Notepad";
|
this.Text = "Crypto Notepad";
|
||||||
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.EnterPasswordForm_FormClosed);
|
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.EnterKeyForm_FormClosed);
|
||||||
this.Load += new System.EventHandler(this.EnterPasswordForm_Load);
|
this.Load += new System.EventHandler(this.EnterKeyForm_Load);
|
||||||
this.Shown += new System.EventHandler(this.EnterPasswordForm_Shown);
|
this.Shown += new System.EventHandler(this.EnterKeyForm_Shown);
|
||||||
this.mainPanel.ResumeLayout(false);
|
this.mainPanel.ResumeLayout(false);
|
||||||
this.mainPanel.PerformLayout();
|
this.mainPanel.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).EndInit();
|
||||||
|
|
@ -3,16 +3,16 @@
|
||||||
|
|
||||||
namespace Crypto_Notepad
|
namespace Crypto_Notepad
|
||||||
{
|
{
|
||||||
public partial class EnterPasswordForm : Form
|
public partial class EnterKeyForm : Form
|
||||||
{
|
{
|
||||||
public EnterPasswordForm()
|
public EnterKeyForm()
|
||||||
{
|
{
|
||||||
PublicVar.okPressed = false;
|
PublicVar.okPressed = false;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Form Events*/
|
/*Form Events*/
|
||||||
private void EnterPasswordForm_FormClosed(object sender, FormClosedEventArgs e)
|
private void EnterKeyForm_FormClosed(object sender, FormClosedEventArgs e)
|
||||||
{
|
{
|
||||||
MainForm main = Owner as MainForm;
|
MainForm main = Owner as MainForm;
|
||||||
if (main.Visible == false)
|
if (main.Visible == false)
|
||||||
|
|
@ -23,7 +23,7 @@ private void EnterPasswordForm_FormClosed(object sender, FormClosedEventArgs e)
|
||||||
keyTextBox.Focus();
|
keyTextBox.Focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void EnterPasswordForm_Load(object sender, EventArgs e)
|
private void EnterKeyForm_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
fileNameLabel.Text = PublicVar.openFileName;
|
fileNameLabel.Text = PublicVar.openFileName;
|
||||||
Properties.Settings settings = Properties.Settings.Default;
|
Properties.Settings settings = Properties.Settings.Default;
|
||||||
|
|
@ -39,7 +39,7 @@ private void EnterPasswordForm_Load(object sender, EventArgs e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void EnterPasswordForm_Shown(object sender, EventArgs e)
|
private void EnterKeyForm_Shown(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
fileNameLabel.Text = PublicVar.openFileName;
|
fileNameLabel.Text = PublicVar.openFileName;
|
||||||
}
|
}
|
||||||
|
|
@ -117,9 +117,27 @@
|
||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
|
<metadata name="okButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="lockPictureBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="fileNameLabel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="keyTextBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="showKeyPictureBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="enterKeyFormToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="enterKeyFormToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="passwordGeneratorButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
|
|
@ -8,14 +8,9 @@ namespace Crypto_Notepad
|
||||||
public class ExRichTextBox : RichTextBox
|
public class ExRichTextBox : RichTextBox
|
||||||
{
|
{
|
||||||
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
|
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
|
||||||
private static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
|
static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
|
||||||
|
|
||||||
[DllImport("kernel32.dll", EntryPoint = "LoadLibraryW", CharSet = CharSet.Unicode, SetLastError = true)]
|
|
||||||
private static extern IntPtr LoadLibraryW(string s_File);
|
|
||||||
|
|
||||||
private const int WM_VSCROLL = 0x115;
|
private const int WM_VSCROLL = 0x115;
|
||||||
private const int WM_MOUSEWHEEL = 0x20A;
|
private const int WM_MOUSEWHEEL = 0x20A;
|
||||||
|
|
||||||
protected override void WndProc(ref Message m)
|
protected override void WndProc(ref Message m)
|
||||||
{
|
{
|
||||||
if (m.Msg == WM_MOUSEWHEEL)
|
if (m.Msg == WM_MOUSEWHEEL)
|
||||||
|
|
@ -37,18 +32,8 @@ protected override void WndProc(ref Message m)
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
base.WndProc(ref m);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override CreateParams CreateParams
|
base.WndProc(ref m);
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
var cp = base.CreateParams;
|
|
||||||
LoadLibraryW("MsftEdit.dll");
|
|
||||||
cp.ClassName = "RichEdit50W";
|
|
||||||
return cp;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnHandleCreated(EventArgs e)
|
protected override void OnHandleCreated(EventArgs e)
|
||||||
|
|
@ -61,7 +46,6 @@ protected override void OnHandleCreated(EventArgs e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class RichTextBoxPadding
|
public static class RichTextBoxPadding
|
||||||
{
|
{
|
||||||
public static void SetInnerMargins(this TextBoxBase textBox, int left, int top, int right, int bottom)
|
public static void SetInnerMargins(this TextBoxBase textBox, int left, int top, int right, int bottom)
|
||||||
|
|
@ -133,5 +117,6 @@ public static void ResumeDrawing(this RichTextBox richTextBox)
|
||||||
richTextBox.Invalidate();
|
richTextBox.Invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace Crypto_Notepad
|
|
||||||
{
|
|
||||||
public class HideCaretRichTextBox : ExRichTextBox
|
|
||||||
{
|
|
||||||
[DllImport("user32.dll", EntryPoint = "HideCaret")]
|
|
||||||
private static extern long HideCaret(IntPtr hwnd);
|
|
||||||
|
|
||||||
protected override void WndProc(ref Message m)
|
|
||||||
{
|
|
||||||
HideCaret(this.Handle);
|
|
||||||
base.WndProc(ref m);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,186 +0,0 @@
|
||||||
using Microsoft.Win32;
|
|
||||||
using System;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Reflection;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace Crypto_Notepad
|
|
||||||
{
|
|
||||||
public static class Methods
|
|
||||||
{
|
|
||||||
static readonly string[] SizeSuffixes = { "bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB" };
|
|
||||||
public static void AppendLine(this TextBox source, string value)
|
|
||||||
{
|
|
||||||
if (source.Text.Length == 0)
|
|
||||||
source.Text = value;
|
|
||||||
else
|
|
||||||
source.AppendText("\r\n" + value);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool IsOnScreen(Form form)
|
|
||||||
{
|
|
||||||
Rectangle formRectangle = new Rectangle(form.Left, form.Top, form.Width, form.Height);
|
|
||||||
return Screen.AllScreens.Any(s => s.WorkingArea.IntersectsWith(formRectangle));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void Times(this int count, Action action)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < count; i++)
|
|
||||||
{
|
|
||||||
action();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string CheckDotNetVersion(int releaseKey)
|
|
||||||
{
|
|
||||||
if (releaseKey >= 528040)
|
|
||||||
return "4.8 or later";
|
|
||||||
if (releaseKey >= 461808)
|
|
||||||
return "4.7.2";
|
|
||||||
if (releaseKey >= 461308)
|
|
||||||
return "4.7.1";
|
|
||||||
if (releaseKey >= 460798)
|
|
||||||
return "4.7";
|
|
||||||
if (releaseKey >= 394802)
|
|
||||||
return "4.6.2";
|
|
||||||
if (releaseKey >= 394254)
|
|
||||||
return "4.6.1";
|
|
||||||
if (releaseKey >= 393295)
|
|
||||||
return "4.6";
|
|
||||||
if (releaseKey >= 379893)
|
|
||||||
return "4.5.2";
|
|
||||||
if (releaseKey >= 378675)
|
|
||||||
return "4.5.1";
|
|
||||||
if (releaseKey >= 378389)
|
|
||||||
return "4.5";
|
|
||||||
return "No 4.5 or later version detected";
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string GetDotNetVersion()
|
|
||||||
{
|
|
||||||
int releaseKey;
|
|
||||||
using (RegistryKey ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine,
|
|
||||||
RegistryView.Registry32).OpenSubKey("SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full\\"))
|
|
||||||
{
|
|
||||||
releaseKey = Convert.ToInt32(ndpKey.GetValue("Release"));
|
|
||||||
}
|
|
||||||
return CheckDotNetVersion(releaseKey);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void DeleteUpdateFiles()
|
|
||||||
{
|
|
||||||
string exePath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"\";
|
|
||||||
string UpdaterExe = exePath + "Updater.exe";
|
|
||||||
string UpdateZip = exePath + "Crypto-Notepad-Update.zip";
|
|
||||||
if (File.Exists(UpdaterExe))
|
|
||||||
{
|
|
||||||
File.Delete(UpdaterExe);
|
|
||||||
}
|
|
||||||
if (File.Exists(UpdateZip))
|
|
||||||
{
|
|
||||||
File.Delete(UpdateZip);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string SizeSuffix(long value)
|
|
||||||
{
|
|
||||||
if (value < 0) { return "-" + SizeSuffix(-value); }
|
|
||||||
|
|
||||||
int i = 0;
|
|
||||||
decimal dValue = (decimal)value;
|
|
||||||
while (Math.Round(dValue / 1024) >= 1)
|
|
||||||
{
|
|
||||||
dValue /= 1024;
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
return string.Format("{0:n1} {1}", dValue, SizeSuffixes[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void AssociateExtension(string applicationExecutablePath, string extension)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\Classes", true);
|
|
||||||
key.CreateSubKey("." + extension).SetValue(string.Empty, extension + "_auto_file");
|
|
||||||
key = key.CreateSubKey(extension + "_auto_file");
|
|
||||||
key.CreateSubKey("DefaultIcon").SetValue(string.Empty, applicationExecutablePath + ",0");
|
|
||||||
key = key.CreateSubKey("Shell");
|
|
||||||
key.SetValue(string.Empty, "Open");
|
|
||||||
key = key.CreateSubKey("Open");
|
|
||||||
key.CreateSubKey("Command").SetValue(string.Empty, "\"" + applicationExecutablePath + "\" \"%1\" /o");
|
|
||||||
key.CreateSubKey("ddeexec\\Topic").SetValue(string.Empty, "System");
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void DissociateExtension(string extension)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes", true);
|
|
||||||
RegistryKey subKeyTree = Registry.CurrentUser.OpenSubKey(@"Software\Classes\" + extension + "_auto_file", true);
|
|
||||||
if (subKeyTree != null)
|
|
||||||
{
|
|
||||||
key.DeleteSubKeyTree(extension + "_auto_file");
|
|
||||||
key.DeleteSubKeyTree("." + extension);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch { }
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void MenuIntegrate(string action)
|
|
||||||
{
|
|
||||||
string appExePath = Assembly.GetEntryAssembly().Location;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (action == "enable")
|
|
||||||
{
|
|
||||||
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes\", true);
|
|
||||||
key = key.CreateSubKey("*");
|
|
||||||
key = key.CreateSubKey("shell");
|
|
||||||
key.CreateSubKey("Crypto Notepad").SetValue("icon", appExePath);
|
|
||||||
key.CreateSubKey("Crypto Notepad").SetValue("SubCommands", "");
|
|
||||||
key.CreateSubKey(@"Crypto Notepad\shell");
|
|
||||||
key.CreateSubKey(@"Crypto Notepad\shell\cmd1\").SetValue("MUIVerb", "Encrypt");
|
|
||||||
key.CreateSubKey(@"Crypto Notepad\shell\cmd1\command").SetValue(string.Empty, "\"" + appExePath + "\" \"%1\" /er");
|
|
||||||
key.CreateSubKey(@"Crypto Notepad\shell\cmd2\").SetValue("MUIVerb", "Decrypt");
|
|
||||||
key.CreateSubKey(@"Crypto Notepad\shell\cmd2\command").SetValue(string.Empty, "\"" + appExePath + "\" \"%1\" /o");
|
|
||||||
|
|
||||||
}
|
|
||||||
if (action == "disable")
|
|
||||||
{
|
|
||||||
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes\*\shell\", true);
|
|
||||||
RegistryKey subKeyTree = Registry.CurrentUser.OpenSubKey(@"Software\Classes\*\shell\Crypto Notepad", true);
|
|
||||||
if (subKeyTree != null)
|
|
||||||
{
|
|
||||||
key.DeleteSubKeyTree("Crypto Notepad");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch { }
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void SendToShortcut()
|
|
||||||
{
|
|
||||||
string shortcutPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Microsoft\Windows\SendTo";
|
|
||||||
string shortcutName = PublicVar.appName + ".lnk";
|
|
||||||
string shortcutLocation = Path.Combine(shortcutPath, shortcutName);
|
|
||||||
string targetFileLocation = Assembly.GetEntryAssembly().Location;
|
|
||||||
IWshRuntimeLibrary.WshShell shell = new IWshRuntimeLibrary.WshShell();
|
|
||||||
IWshRuntimeLibrary.IWshShortcut shortcut = (IWshRuntimeLibrary.IWshShortcut)shell.CreateShortcut(shortcutLocation);
|
|
||||||
shortcut.Description = PublicVar.appName;
|
|
||||||
shortcut.IconLocation = targetFileLocation;
|
|
||||||
shortcut.TargetPath = targetFileLocation;
|
|
||||||
shortcut.Arguments = "/s";
|
|
||||||
shortcut.Save();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,582 +0,0 @@
|
||||||
using Microsoft.Win32;
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// http://www.codeproject.com/Articles/73000/Getting-Operating-System-Version-Info-Even-for-Win
|
|
||||||
//https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
|
|
||||||
|
|
||||||
//Thanks to Member 7861383, Scott Vickery for the Windows 8.1 update and workaround.
|
|
||||||
//I have moved it to the beginning of the Name property, though...
|
|
||||||
|
|
||||||
//Thakts to Brisingr Aerowing for help with the Windows 10 adapatation
|
|
||||||
|
|
||||||
namespace JCS
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Provides detailed information about the host operating system.
|
|
||||||
/// </summary>
|
|
||||||
public static class OSVersionInfo
|
|
||||||
{
|
|
||||||
#region ENUMS
|
|
||||||
public enum SoftwareArchitecture
|
|
||||||
{
|
|
||||||
Unknown = 0,
|
|
||||||
Bit32 = 1,
|
|
||||||
Bit64 = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum ProcessorArchitecture
|
|
||||||
{
|
|
||||||
Unknown = 0,
|
|
||||||
Bit32 = 1,
|
|
||||||
Bit64 = 2,
|
|
||||||
Itanium64 = 3
|
|
||||||
}
|
|
||||||
#endregion ENUMS
|
|
||||||
|
|
||||||
#region DELEGATE DECLARATION
|
|
||||||
private delegate bool IsWow64ProcessDelegate([In] IntPtr handle, [Out] out bool isWow64Process);
|
|
||||||
#endregion DELEGATE DECLARATION
|
|
||||||
|
|
||||||
#region NAME
|
|
||||||
static private string s_Name;
|
|
||||||
/// <summary>
|
|
||||||
/// Gets the name of the operating system running on this computer.
|
|
||||||
/// </summary>
|
|
||||||
static public string Name
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (s_Name != null)
|
|
||||||
return s_Name; //***** RETURN *****//
|
|
||||||
|
|
||||||
string name = "unknown";
|
|
||||||
|
|
||||||
OperatingSystem osVersion = Environment.OSVersion;
|
|
||||||
OSVERSIONINFOEX osVersionInfo = new OSVERSIONINFOEX();
|
|
||||||
osVersionInfo.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFOEX));
|
|
||||||
|
|
||||||
if (GetVersionEx(ref osVersionInfo))
|
|
||||||
{
|
|
||||||
int majorVersion = osVersion.Version.Major;
|
|
||||||
int minorVersion = osVersion.Version.Minor;
|
|
||||||
|
|
||||||
if (majorVersion == 6 && minorVersion == 2)
|
|
||||||
{
|
|
||||||
//The registry read workaround is by Scott Vickery. Thanks a lot for the help!
|
|
||||||
|
|
||||||
//http://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx
|
|
||||||
|
|
||||||
// For applications that have been manifested for Windows 8.1 & Windows 10. Applications not manifested for 8.1 or 10 will return the Windows 8 OS version value (6.2).
|
|
||||||
// By reading the registry, we'll get the exact version - meaning we can even compare against Win 8 and Win 8.1.
|
|
||||||
string exactVersion = RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", "");
|
|
||||||
if (!string.IsNullOrEmpty(exactVersion))
|
|
||||||
{
|
|
||||||
string[] splitResult = exactVersion.Split('.');
|
|
||||||
majorVersion = Convert.ToInt32(splitResult[0]);
|
|
||||||
minorVersion = Convert.ToInt32(splitResult[1]);
|
|
||||||
}
|
|
||||||
if (IsWindows10())
|
|
||||||
{
|
|
||||||
majorVersion = 10;
|
|
||||||
minorVersion = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (osVersion.Platform)
|
|
||||||
{
|
|
||||||
case PlatformID.Win32S:
|
|
||||||
name = "Windows 3.1";
|
|
||||||
break;
|
|
||||||
case PlatformID.WinCE:
|
|
||||||
name = "Windows CE";
|
|
||||||
break;
|
|
||||||
case PlatformID.Win32Windows:
|
|
||||||
{
|
|
||||||
if (majorVersion == 4)
|
|
||||||
{
|
|
||||||
string csdVersion = osVersionInfo.szCSDVersion;
|
|
||||||
switch (minorVersion)
|
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
if (csdVersion == "B" || csdVersion == "C")
|
|
||||||
name = "Windows 95 OSR2";
|
|
||||||
else
|
|
||||||
name = "Windows 95";
|
|
||||||
break;
|
|
||||||
case 10:
|
|
||||||
if (csdVersion == "A")
|
|
||||||
name = "Windows 98 Second Edition";
|
|
||||||
else
|
|
||||||
name = "Windows 98";
|
|
||||||
break;
|
|
||||||
case 90:
|
|
||||||
name = "Windows Me";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case PlatformID.Win32NT:
|
|
||||||
{
|
|
||||||
byte productType = osVersionInfo.wProductType;
|
|
||||||
|
|
||||||
switch (majorVersion)
|
|
||||||
{
|
|
||||||
case 3:
|
|
||||||
name = "Windows NT 3.51";
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
switch (productType)
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
name = "Windows NT 4.0";
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
name = "Windows NT 4.0 Server";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
switch (minorVersion)
|
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
name = "Windows 2000";
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
name = "Windows XP";
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
name = "Windows Server 2003";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
switch (minorVersion)
|
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
switch (productType)
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
name = "Windows Vista";
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
name = "Windows Server 2008";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 1:
|
|
||||||
switch (productType)
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
name = "Windows 7";
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
name = "Windows Server 2008 R2";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
switch (productType)
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
name = "Windows 8";
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
name = "Windows Server 2012";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
switch (productType)
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
name = "Windows 8.1";
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
name = "Windows Server 2012 R2";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 10:
|
|
||||||
switch (minorVersion)
|
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
switch (productType)
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
name = "Windows 10";
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
name = "Windows Server 2016";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
s_Name = name;
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion NAME
|
|
||||||
|
|
||||||
#region PINVOKE
|
|
||||||
|
|
||||||
#region GET
|
|
||||||
#region PRODUCT INFO
|
|
||||||
[DllImport("Kernel32.dll")]
|
|
||||||
internal static extern bool GetProductInfo(
|
|
||||||
int osMajorVersion,
|
|
||||||
int osMinorVersion,
|
|
||||||
int spMajorVersion,
|
|
||||||
int spMinorVersion,
|
|
||||||
out int edition);
|
|
||||||
#endregion PRODUCT INFO
|
|
||||||
|
|
||||||
#region VERSION
|
|
||||||
[DllImport("kernel32.dll")]
|
|
||||||
private static extern bool GetVersionEx(ref OSVERSIONINFOEX osVersionInfo);
|
|
||||||
#endregion VERSION
|
|
||||||
|
|
||||||
#region SYSTEMMETRICS
|
|
||||||
[DllImport("user32")]
|
|
||||||
public static extern int GetSystemMetrics(int nIndex);
|
|
||||||
#endregion SYSTEMMETRICS
|
|
||||||
|
|
||||||
#region SYSTEMINFO
|
|
||||||
[DllImport("kernel32.dll")]
|
|
||||||
public static extern void GetSystemInfo([MarshalAs(UnmanagedType.Struct)] ref SYSTEM_INFO lpSystemInfo);
|
|
||||||
|
|
||||||
[DllImport("kernel32.dll")]
|
|
||||||
public static extern void GetNativeSystemInfo([MarshalAs(UnmanagedType.Struct)] ref SYSTEM_INFO lpSystemInfo);
|
|
||||||
#endregion SYSTEMINFO
|
|
||||||
|
|
||||||
#endregion GET
|
|
||||||
|
|
||||||
#region OSVERSIONINFOEX
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
|
||||||
private struct OSVERSIONINFOEX
|
|
||||||
{
|
|
||||||
public int dwOSVersionInfoSize;
|
|
||||||
public int dwMajorVersion;
|
|
||||||
public int dwMinorVersion;
|
|
||||||
public int dwBuildNumber;
|
|
||||||
public int dwPlatformId;
|
|
||||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
|
|
||||||
public string szCSDVersion;
|
|
||||||
public short wServicePackMajor;
|
|
||||||
public short wServicePackMinor;
|
|
||||||
public short wSuiteMask;
|
|
||||||
public byte wProductType;
|
|
||||||
public byte wReserved;
|
|
||||||
}
|
|
||||||
#endregion OSVERSIONINFOEX
|
|
||||||
|
|
||||||
#region SYSTEM_INFO
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
|
||||||
public struct SYSTEM_INFO
|
|
||||||
{
|
|
||||||
internal _PROCESSOR_INFO_UNION uProcessorInfo;
|
|
||||||
public uint dwPageSize;
|
|
||||||
public IntPtr lpMinimumApplicationAddress;
|
|
||||||
public IntPtr lpMaximumApplicationAddress;
|
|
||||||
public IntPtr dwActiveProcessorMask;
|
|
||||||
public uint dwNumberOfProcessors;
|
|
||||||
public uint dwProcessorType;
|
|
||||||
public uint dwAllocationGranularity;
|
|
||||||
public ushort dwProcessorLevel;
|
|
||||||
public ushort dwProcessorRevision;
|
|
||||||
}
|
|
||||||
#endregion SYSTEM_INFO
|
|
||||||
|
|
||||||
#region _PROCESSOR_INFO_UNION
|
|
||||||
[StructLayout(LayoutKind.Explicit)]
|
|
||||||
public struct _PROCESSOR_INFO_UNION
|
|
||||||
{
|
|
||||||
[FieldOffset(0)]
|
|
||||||
internal uint dwOemId;
|
|
||||||
[FieldOffset(0)]
|
|
||||||
internal ushort wProcessorArchitecture;
|
|
||||||
[FieldOffset(2)]
|
|
||||||
internal ushort wReserved;
|
|
||||||
}
|
|
||||||
#endregion _PROCESSOR_INFO_UNION
|
|
||||||
|
|
||||||
#region 64 BIT OS DETECTION
|
|
||||||
[DllImport("kernel32", SetLastError = true, CallingConvention = CallingConvention.Winapi)]
|
|
||||||
public extern static IntPtr LoadLibrary(string libraryName);
|
|
||||||
|
|
||||||
[DllImport("kernel32", SetLastError = true, CallingConvention = CallingConvention.Winapi)]
|
|
||||||
public extern static IntPtr GetProcAddress(IntPtr hwnd, string procedureName);
|
|
||||||
#endregion 64 BIT OS DETECTION
|
|
||||||
|
|
||||||
#region PRODUCT
|
|
||||||
private const int PRODUCT_UNDEFINED = 0x00000000;
|
|
||||||
private const int PRODUCT_ULTIMATE = 0x00000001;
|
|
||||||
private const int PRODUCT_HOME_BASIC = 0x00000002;
|
|
||||||
private const int PRODUCT_HOME_PREMIUM = 0x00000003;
|
|
||||||
private const int PRODUCT_ENTERPRISE = 0x00000004;
|
|
||||||
private const int PRODUCT_HOME_BASIC_N = 0x00000005;
|
|
||||||
private const int PRODUCT_BUSINESS = 0x00000006;
|
|
||||||
private const int PRODUCT_STANDARD_SERVER = 0x00000007;
|
|
||||||
private const int PRODUCT_DATACENTER_SERVER = 0x00000008;
|
|
||||||
private const int PRODUCT_SMALLBUSINESS_SERVER = 0x00000009;
|
|
||||||
private const int PRODUCT_ENTERPRISE_SERVER = 0x0000000A;
|
|
||||||
private const int PRODUCT_STARTER = 0x0000000B;
|
|
||||||
private const int PRODUCT_DATACENTER_SERVER_CORE = 0x0000000C;
|
|
||||||
private const int PRODUCT_STANDARD_SERVER_CORE = 0x0000000D;
|
|
||||||
private const int PRODUCT_ENTERPRISE_SERVER_CORE = 0x0000000E;
|
|
||||||
private const int PRODUCT_ENTERPRISE_SERVER_IA64 = 0x0000000F;
|
|
||||||
private const int PRODUCT_BUSINESS_N = 0x00000010;
|
|
||||||
private const int PRODUCT_WEB_SERVER = 0x00000011;
|
|
||||||
private const int PRODUCT_CLUSTER_SERVER = 0x00000012;
|
|
||||||
private const int PRODUCT_HOME_SERVER = 0x00000013;
|
|
||||||
private const int PRODUCT_STORAGE_EXPRESS_SERVER = 0x00000014;
|
|
||||||
private const int PRODUCT_STORAGE_STANDARD_SERVER = 0x00000015;
|
|
||||||
private const int PRODUCT_STORAGE_WORKGROUP_SERVER = 0x00000016;
|
|
||||||
private const int PRODUCT_STORAGE_ENTERPRISE_SERVER = 0x00000017;
|
|
||||||
private const int PRODUCT_SERVER_FOR_SMALLBUSINESS = 0x00000018;
|
|
||||||
private const int PRODUCT_SMALLBUSINESS_SERVER_PREMIUM = 0x00000019;
|
|
||||||
private const int PRODUCT_HOME_PREMIUM_N = 0x0000001A;
|
|
||||||
private const int PRODUCT_ENTERPRISE_N = 0x0000001B;
|
|
||||||
private const int PRODUCT_ULTIMATE_N = 0x0000001C;
|
|
||||||
private const int PRODUCT_WEB_SERVER_CORE = 0x0000001D;
|
|
||||||
private const int PRODUCT_MEDIUMBUSINESS_SERVER_MANAGEMENT = 0x0000001E;
|
|
||||||
private const int PRODUCT_MEDIUMBUSINESS_SERVER_SECURITY = 0x0000001F;
|
|
||||||
private const int PRODUCT_MEDIUMBUSINESS_SERVER_MESSAGING = 0x00000020;
|
|
||||||
private const int PRODUCT_SERVER_FOUNDATION = 0x00000021;
|
|
||||||
private const int PRODUCT_HOME_PREMIUM_SERVER = 0x00000022;
|
|
||||||
private const int PRODUCT_SERVER_FOR_SMALLBUSINESS_V = 0x00000023;
|
|
||||||
private const int PRODUCT_STANDARD_SERVER_V = 0x00000024;
|
|
||||||
private const int PRODUCT_DATACENTER_SERVER_V = 0x00000025;
|
|
||||||
private const int PRODUCT_ENTERPRISE_SERVER_V = 0x00000026;
|
|
||||||
private const int PRODUCT_DATACENTER_SERVER_CORE_V = 0x00000027;
|
|
||||||
private const int PRODUCT_STANDARD_SERVER_CORE_V = 0x00000028;
|
|
||||||
private const int PRODUCT_ENTERPRISE_SERVER_CORE_V = 0x00000029;
|
|
||||||
private const int PRODUCT_HYPERV = 0x0000002A;
|
|
||||||
private const int PRODUCT_STORAGE_EXPRESS_SERVER_CORE = 0x0000002B;
|
|
||||||
private const int PRODUCT_STORAGE_STANDARD_SERVER_CORE = 0x0000002C;
|
|
||||||
private const int PRODUCT_STORAGE_WORKGROUP_SERVER_CORE = 0x0000002D;
|
|
||||||
private const int PRODUCT_STORAGE_ENTERPRISE_SERVER_CORE = 0x0000002E;
|
|
||||||
private const int PRODUCT_STARTER_N = 0x0000002F;
|
|
||||||
private const int PRODUCT_PROFESSIONAL = 0x00000030;
|
|
||||||
private const int PRODUCT_PROFESSIONAL_N = 0x00000031;
|
|
||||||
private const int PRODUCT_SB_SOLUTION_SERVER = 0x00000032;
|
|
||||||
private const int PRODUCT_SERVER_FOR_SB_SOLUTIONS = 0x00000033;
|
|
||||||
private const int PRODUCT_STANDARD_SERVER_SOLUTIONS = 0x00000034;
|
|
||||||
private const int PRODUCT_STANDARD_SERVER_SOLUTIONS_CORE = 0x00000035;
|
|
||||||
private const int PRODUCT_SB_SOLUTION_SERVER_EM = 0x00000036;
|
|
||||||
private const int PRODUCT_SERVER_FOR_SB_SOLUTIONS_EM = 0x00000037;
|
|
||||||
private const int PRODUCT_SOLUTION_EMBEDDEDSERVER = 0x00000038;
|
|
||||||
private const int PRODUCT_SOLUTION_EMBEDDEDSERVER_CORE = 0x00000039;
|
|
||||||
//private const int ???? = 0x0000003A;
|
|
||||||
private const int PRODUCT_ESSENTIALBUSINESS_SERVER_MGMT = 0x0000003B;
|
|
||||||
private const int PRODUCT_ESSENTIALBUSINESS_SERVER_ADDL = 0x0000003C;
|
|
||||||
private const int PRODUCT_ESSENTIALBUSINESS_SERVER_MGMTSVC = 0x0000003D;
|
|
||||||
private const int PRODUCT_ESSENTIALBUSINESS_SERVER_ADDLSVC = 0x0000003E;
|
|
||||||
private const int PRODUCT_SMALLBUSINESS_SERVER_PREMIUM_CORE = 0x0000003F;
|
|
||||||
private const int PRODUCT_CLUSTER_SERVER_V = 0x00000040;
|
|
||||||
private const int PRODUCT_EMBEDDED = 0x00000041;
|
|
||||||
private const int PRODUCT_STARTER_E = 0x00000042;
|
|
||||||
private const int PRODUCT_HOME_BASIC_E = 0x00000043;
|
|
||||||
private const int PRODUCT_HOME_PREMIUM_E = 0x00000044;
|
|
||||||
private const int PRODUCT_PROFESSIONAL_E = 0x00000045;
|
|
||||||
private const int PRODUCT_ENTERPRISE_E = 0x00000046;
|
|
||||||
private const int PRODUCT_ULTIMATE_E = 0x00000047;
|
|
||||||
//private const int PRODUCT_UNLICENSED = 0xABCDABCD;
|
|
||||||
#endregion PRODUCT
|
|
||||||
|
|
||||||
#region VERSIONS
|
|
||||||
private const int VER_NT_WORKSTATION = 1;
|
|
||||||
private const int VER_NT_DOMAIN_CONTROLLER = 2;
|
|
||||||
private const int VER_NT_SERVER = 3;
|
|
||||||
private const int VER_SUITE_SMALLBUSINESS = 1;
|
|
||||||
private const int VER_SUITE_ENTERPRISE = 2;
|
|
||||||
private const int VER_SUITE_TERMINAL = 16;
|
|
||||||
private const int VER_SUITE_DATACENTER = 128;
|
|
||||||
private const int VER_SUITE_SINGLEUSERTS = 256;
|
|
||||||
private const int VER_SUITE_PERSONAL = 512;
|
|
||||||
private const int VER_SUITE_BLADE = 1024;
|
|
||||||
#endregion VERSIONS
|
|
||||||
|
|
||||||
#endregion PINVOKE
|
|
||||||
|
|
||||||
#region VERSION
|
|
||||||
#region BUILD
|
|
||||||
/// <summary>
|
|
||||||
/// Gets the build version number of the operating system running on this computer.
|
|
||||||
/// </summary>
|
|
||||||
static public int BuildVersion
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return int.Parse(RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentBuildNumber", "0"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion BUILD
|
|
||||||
|
|
||||||
#region FULL
|
|
||||||
#region STRING
|
|
||||||
/// <summary>
|
|
||||||
/// Gets the full version string of the operating system running on this computer.
|
|
||||||
/// </summary>
|
|
||||||
static public string VersionString
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return Version.ToString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion STRING
|
|
||||||
|
|
||||||
#region VERSION
|
|
||||||
/// <summary>
|
|
||||||
/// Gets the full version of the operating system running on this computer.
|
|
||||||
/// </summary>
|
|
||||||
static public Version Version
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return new Version(MajorVersion, MinorVersion, BuildVersion, RevisionVersion);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion VERSION
|
|
||||||
#endregion FULL
|
|
||||||
|
|
||||||
#region MAJOR
|
|
||||||
/// <summary>
|
|
||||||
/// Gets the major version number of the operating system running on this computer.
|
|
||||||
/// </summary>
|
|
||||||
static public int MajorVersion
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if(IsWindows10())
|
|
||||||
{
|
|
||||||
return 10;
|
|
||||||
}
|
|
||||||
string exactVersion = RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", "");
|
|
||||||
if(!string.IsNullOrEmpty(exactVersion))
|
|
||||||
{
|
|
||||||
string[] splitVersion = exactVersion.Split('.');
|
|
||||||
return int.Parse(splitVersion[0]);
|
|
||||||
}
|
|
||||||
return Environment.OSVersion.Version.Major;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion MAJOR
|
|
||||||
|
|
||||||
#region MINOR
|
|
||||||
/// <summary>
|
|
||||||
/// Gets the minor version number of the operating system running on this computer.
|
|
||||||
/// </summary>
|
|
||||||
static public int MinorVersion
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (IsWindows10())
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
string exactVersion = RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", "");
|
|
||||||
if (!string.IsNullOrEmpty(exactVersion))
|
|
||||||
{
|
|
||||||
string[] splitVersion = exactVersion.Split('.');
|
|
||||||
return int.Parse(splitVersion[1]);
|
|
||||||
}
|
|
||||||
return Environment.OSVersion.Version.Minor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion MINOR
|
|
||||||
|
|
||||||
#region REVISION
|
|
||||||
/// <summary>
|
|
||||||
/// Gets the revision version number of the operating system running on this computer.
|
|
||||||
/// </summary>
|
|
||||||
static public int RevisionVersion
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if(IsWindows10())
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return Environment.OSVersion.Version.Revision;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion REVISION
|
|
||||||
#endregion VERSION
|
|
||||||
|
|
||||||
#region Windows 10 Detection
|
|
||||||
|
|
||||||
private static bool IsWindows10()
|
|
||||||
{
|
|
||||||
string productName = RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName", "");
|
|
||||||
if (productName.StartsWith("Windows 10", StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Registry Methods
|
|
||||||
|
|
||||||
private static string RegistryRead(string RegistryPath, string Field, string DefaultValue)
|
|
||||||
{
|
|
||||||
string rtn = "";
|
|
||||||
string backSlash = "";
|
|
||||||
string newRegistryPath = "";
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
RegistryKey OurKey = null;
|
|
||||||
string[] split_result = RegistryPath.Split('\\');
|
|
||||||
|
|
||||||
if (split_result.Length > 0)
|
|
||||||
{
|
|
||||||
split_result[0] = split_result[0].ToUpper(); // Make the first entry uppercase...
|
|
||||||
|
|
||||||
if (split_result[0] == "HKEY_CLASSES_ROOT") OurKey = Registry.ClassesRoot;
|
|
||||||
else if (split_result[0] == "HKEY_CURRENT_USER") OurKey = Registry.CurrentUser;
|
|
||||||
else if (split_result[0] == "HKEY_LOCAL_MACHINE") OurKey = Registry.LocalMachine;
|
|
||||||
else if (split_result[0] == "HKEY_USERS") OurKey = Registry.Users;
|
|
||||||
else if (split_result[0] == "HKEY_CURRENT_CONFIG") OurKey = Registry.CurrentConfig;
|
|
||||||
|
|
||||||
if (OurKey != null)
|
|
||||||
{
|
|
||||||
for (int i = 1; i < split_result.Length; i++)
|
|
||||||
{
|
|
||||||
newRegistryPath += backSlash + split_result[i];
|
|
||||||
backSlash = "\\";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (newRegistryPath != "")
|
|
||||||
{
|
|
||||||
//rtn = (string)Registry.GetValue(RegistryPath, "CurrentVersion", DefaultValue);
|
|
||||||
|
|
||||||
OurKey = OurKey.OpenSubKey(newRegistryPath);
|
|
||||||
rtn = (string)OurKey.GetValue(Field, DefaultValue);
|
|
||||||
OurKey.Close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch { }
|
|
||||||
|
|
||||||
return rtn;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion Registry Methods
|
|
||||||
}
|
|
||||||
}
|
|
||||||
119
Crypto Notepad/Forms/AboutFrom.Designer.cs
generated
119
Crypto Notepad/Forms/AboutFrom.Designer.cs
generated
|
|
@ -1,119 +0,0 @@
|
||||||
namespace Crypto_Notepad
|
|
||||||
{
|
|
||||||
partial class AboutFrom
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Required designer variable.
|
|
||||||
/// </summary>
|
|
||||||
private System.ComponentModel.IContainer components = null;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Clean up any resources being used.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
||||||
protected override void Dispose(bool disposing)
|
|
||||||
{
|
|
||||||
if (disposing && (components != null))
|
|
||||||
{
|
|
||||||
components.Dispose();
|
|
||||||
}
|
|
||||||
base.Dispose(disposing);
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Windows Form Designer generated code
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
this.components = new System.ComponentModel.Container();
|
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutFrom));
|
|
||||||
this.appVersionLabel = new System.Windows.Forms.Label();
|
|
||||||
this.randomColorTimer = new System.Windows.Forms.Timer(this.components);
|
|
||||||
this.aboutToolTip = new System.Windows.Forms.ToolTip(this.components);
|
|
||||||
this.appInfoRichTextBox = new Crypto_Notepad.HideCaretRichTextBox();
|
|
||||||
this.SuspendLayout();
|
|
||||||
//
|
|
||||||
// appVersionLabel
|
|
||||||
//
|
|
||||||
this.appVersionLabel.AutoSize = true;
|
|
||||||
this.appVersionLabel.Cursor = System.Windows.Forms.Cursors.Hand;
|
|
||||||
this.appVersionLabel.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.appVersionLabel.ForeColor = System.Drawing.SystemColors.HotTrack;
|
|
||||||
this.appVersionLabel.Location = new System.Drawing.Point(4, 10);
|
|
||||||
this.appVersionLabel.Name = "appVersionLabel";
|
|
||||||
this.appVersionLabel.Size = new System.Drawing.Size(210, 22);
|
|
||||||
this.appVersionLabel.TabIndex = 1;
|
|
||||||
this.appVersionLabel.Text = "Crypto Notepad 1.0.0";
|
|
||||||
this.appVersionLabel.MouseClick += new System.Windows.Forms.MouseEventHandler(this.AppVersionLabel_MouseClick);
|
|
||||||
this.appVersionLabel.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.AppVersionLabel_MouseDoubleClick);
|
|
||||||
this.appVersionLabel.MouseEnter += new System.EventHandler(this.appVersionLabel_MouseEnter);
|
|
||||||
//
|
|
||||||
// randomColorTimer
|
|
||||||
//
|
|
||||||
this.randomColorTimer.Interval = 200;
|
|
||||||
this.randomColorTimer.Tick += new System.EventHandler(this.RandomColorTimer_Tick);
|
|
||||||
//
|
|
||||||
// aboutToolTip
|
|
||||||
//
|
|
||||||
this.aboutToolTip.AutoPopDelay = 5000;
|
|
||||||
this.aboutToolTip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(61)))), ((int)(((byte)(68)))));
|
|
||||||
this.aboutToolTip.ForeColor = System.Drawing.Color.DarkGray;
|
|
||||||
this.aboutToolTip.InitialDelay = 100;
|
|
||||||
this.aboutToolTip.OwnerDraw = true;
|
|
||||||
this.aboutToolTip.ReshowDelay = 100;
|
|
||||||
this.aboutToolTip.Draw += new System.Windows.Forms.DrawToolTipEventHandler(this.AboutToolTip_Draw);
|
|
||||||
//
|
|
||||||
// appInfoRichTextBox
|
|
||||||
//
|
|
||||||
this.appInfoRichTextBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
|
|
||||||
this.appInfoRichTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
|
||||||
this.appInfoRichTextBox.Cursor = System.Windows.Forms.Cursors.IBeam;
|
|
||||||
this.appInfoRichTextBox.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.appInfoRichTextBox.ForeColor = System.Drawing.SystemColors.ButtonFace;
|
|
||||||
this.appInfoRichTextBox.Location = new System.Drawing.Point(0, 44);
|
|
||||||
this.appInfoRichTextBox.Name = "appInfoRichTextBox";
|
|
||||||
this.appInfoRichTextBox.ReadOnly = true;
|
|
||||||
this.appInfoRichTextBox.RightMargin = 700;
|
|
||||||
this.appInfoRichTextBox.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
|
|
||||||
this.appInfoRichTextBox.ShowSelectionMargin = true;
|
|
||||||
this.appInfoRichTextBox.Size = new System.Drawing.Size(439, 285);
|
|
||||||
this.appInfoRichTextBox.TabIndex = 2;
|
|
||||||
this.appInfoRichTextBox.TabStop = false;
|
|
||||||
this.appInfoRichTextBox.Text = resources.GetString("appInfoRichTextBox.Text");
|
|
||||||
this.appInfoRichTextBox.WordWrap = false;
|
|
||||||
this.appInfoRichTextBox.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.AppInfoRichTextBox_LinkClicked);
|
|
||||||
//
|
|
||||||
// AboutFrom
|
|
||||||
//
|
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
||||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
|
|
||||||
this.ClientSize = new System.Drawing.Size(435, 323);
|
|
||||||
this.Controls.Add(this.appInfoRichTextBox);
|
|
||||||
this.Controls.Add(this.appVersionLabel);
|
|
||||||
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
||||||
this.MaximizeBox = false;
|
|
||||||
this.MinimizeBox = false;
|
|
||||||
this.Name = "AboutFrom";
|
|
||||||
this.ShowInTaskbar = false;
|
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
||||||
this.Text = "About";
|
|
||||||
this.Load += new System.EventHandler(this.AboutWindow_Load);
|
|
||||||
this.ResumeLayout(false);
|
|
||||||
this.PerformLayout();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
private System.Windows.Forms.Label appVersionLabel;
|
|
||||||
private HideCaretRichTextBox appInfoRichTextBox;
|
|
||||||
private System.Windows.Forms.Timer randomColorTimer;
|
|
||||||
private System.Windows.Forms.ToolTip aboutToolTip;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,106 +0,0 @@
|
||||||
using JCS;
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace Crypto_Notepad
|
|
||||||
{
|
|
||||||
public partial class AboutFrom : Form
|
|
||||||
{
|
|
||||||
private Random rnd = new Random();
|
|
||||||
public AboutFrom()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Methods
|
|
||||||
private void GetDebugInfo()
|
|
||||||
{
|
|
||||||
Version vrs = new Version(Application.ProductVersion);
|
|
||||||
StringBuilder sb = new StringBuilder(string.Empty);
|
|
||||||
sb.AppendLine("App version = " + vrs);
|
|
||||||
sb.AppendLine(string.Format("OS name = {0}", OSVersionInfo.Name));
|
|
||||||
sb.AppendLine(string.Format("OS version = {0}", OSVersionInfo.VersionString));
|
|
||||||
sb.AppendLine(".Net Framework = " + Methods.GetDotNetVersion());
|
|
||||||
Clipboard.SetText(sb.ToString());
|
|
||||||
aboutToolTip.AutoPopDelay = 1000;
|
|
||||||
aboutToolTip.SetToolTip(appVersionLabel, "Copied");
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
#region Event Handlers
|
|
||||||
private void AboutWindow_Load(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
Version vrs = new Version(Application.ProductVersion);
|
|
||||||
appVersionLabel.Text = string.Format(PublicVar.appName + " {0}.{1}.{2}", vrs.Major, vrs.Minor, vrs.Build);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override bool ProcessDialogKey(Keys keyData)
|
|
||||||
{
|
|
||||||
if (ModifierKeys == Keys.None && keyData == Keys.Escape)
|
|
||||||
{
|
|
||||||
Close();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return base.ProcessDialogKey(keyData);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void RandomColorTimer_Tick(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
Color randomColor = Color.FromArgb(rnd.Next(256), rnd.Next(256), rnd.Next(256));
|
|
||||||
appVersionLabel.ForeColor = randomColor;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AppVersionLabel_MouseDoubleClick(object sender, MouseEventArgs e)
|
|
||||||
{
|
|
||||||
if (e.Button == MouseButtons.Left)
|
|
||||||
{
|
|
||||||
GetDebugInfo();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AppInfoRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
|
|
||||||
{
|
|
||||||
Process.Start(e.LinkText);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AppVersionLabel_MouseClick(object sender, MouseEventArgs e)
|
|
||||||
{
|
|
||||||
if (e.Button == MouseButtons.Left)
|
|
||||||
{
|
|
||||||
GetDebugInfo();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (e.Button == MouseButtons.Right)
|
|
||||||
{
|
|
||||||
if (randomColorTimer.Enabled)
|
|
||||||
{
|
|
||||||
randomColorTimer.Stop();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
randomColorTimer.Start();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AboutToolTip_Draw(object sender, DrawToolTipEventArgs e)
|
|
||||||
{
|
|
||||||
e.DrawBackground();
|
|
||||||
e.DrawBorder();
|
|
||||||
e.DrawText();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void appVersionLabel_MouseEnter(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
aboutToolTip.AutoPopDelay = 5000;
|
|
||||||
aboutToolTip.SetToolTip(appVersionLabel, "Left click for copy debug info to the clipboard");
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
307
Crypto Notepad/Forms/PasswordGeneratorFrom.Designer.cs
generated
307
Crypto Notepad/Forms/PasswordGeneratorFrom.Designer.cs
generated
|
|
@ -1,307 +0,0 @@
|
||||||
namespace Crypto_Notepad
|
|
||||||
{
|
|
||||||
partial class PasswordGeneratorFrom
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Required designer variable.
|
|
||||||
/// </summary>
|
|
||||||
private System.ComponentModel.IContainer components = null;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Clean up any resources being used.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
||||||
protected override void Dispose(bool disposing)
|
|
||||||
{
|
|
||||||
if (disposing && (components != null))
|
|
||||||
{
|
|
||||||
components.Dispose();
|
|
||||||
}
|
|
||||||
base.Dispose(disposing);
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Windows Form Designer generated code
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
this.components = new System.ComponentModel.Container();
|
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PasswordGeneratorFrom));
|
|
||||||
this.generateButton = new System.Windows.Forms.Button();
|
|
||||||
this.passwordsListTextBox = new System.Windows.Forms.TextBox();
|
|
||||||
this.clearPasswordsListButton = new System.Windows.Forms.Button();
|
|
||||||
this.lowercaseCheckBox = new System.Windows.Forms.CheckBox();
|
|
||||||
this.uppercaseCheckBox = new System.Windows.Forms.CheckBox();
|
|
||||||
this.numericCheckBox = new System.Windows.Forms.CheckBox();
|
|
||||||
this.passwordLengthLabel = new System.Windows.Forms.Label();
|
|
||||||
this.numberOfStringsLabel = new System.Windows.Forms.Label();
|
|
||||||
this.passwordLengthTextBox = new System.Windows.Forms.TextBox();
|
|
||||||
this.numberOfStringsTextBox = new System.Windows.Forms.TextBox();
|
|
||||||
this.copyAllButton = new System.Windows.Forms.Button();
|
|
||||||
this.copyLastButton = new System.Windows.Forms.Button();
|
|
||||||
this.passwordGeneratorToolTip = new System.Windows.Forms.ToolTip(this.components);
|
|
||||||
this.specialCheckBox = new System.Windows.Forms.CheckBox();
|
|
||||||
this.additionalCheckBox = new System.Windows.Forms.CheckBox();
|
|
||||||
this.bracketsCheckBox = new System.Windows.Forms.CheckBox();
|
|
||||||
this.specialGroupBox = new System.Windows.Forms.GroupBox();
|
|
||||||
this.specialGroupBox.SuspendLayout();
|
|
||||||
this.SuspendLayout();
|
|
||||||
//
|
|
||||||
// generateButton
|
|
||||||
//
|
|
||||||
this.generateButton.AutoSize = true;
|
|
||||||
this.generateButton.Location = new System.Drawing.Point(9, 132);
|
|
||||||
this.generateButton.Name = "generateButton";
|
|
||||||
this.generateButton.Size = new System.Drawing.Size(66, 23);
|
|
||||||
this.generateButton.TabIndex = 1;
|
|
||||||
this.generateButton.Text = "Generate";
|
|
||||||
this.generateButton.UseVisualStyleBackColor = true;
|
|
||||||
this.generateButton.Click += new System.EventHandler(this.GenerateButton_Click);
|
|
||||||
//
|
|
||||||
// passwordsListTextBox
|
|
||||||
//
|
|
||||||
this.passwordsListTextBox.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
||||||
this.passwordsListTextBox.Location = new System.Drawing.Point(9, 161);
|
|
||||||
this.passwordsListTextBox.Multiline = true;
|
|
||||||
this.passwordsListTextBox.Name = "passwordsListTextBox";
|
|
||||||
this.passwordsListTextBox.ReadOnly = true;
|
|
||||||
this.passwordsListTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
|
||||||
this.passwordsListTextBox.Size = new System.Drawing.Size(282, 174);
|
|
||||||
this.passwordsListTextBox.TabIndex = 11;
|
|
||||||
this.passwordsListTextBox.WordWrap = false;
|
|
||||||
this.passwordsListTextBox.TextChanged += new System.EventHandler(this.PasswordsListTextBox_TextChanged);
|
|
||||||
//
|
|
||||||
// clearPasswordsListButton
|
|
||||||
//
|
|
||||||
this.clearPasswordsListButton.AutoSize = true;
|
|
||||||
this.clearPasswordsListButton.Location = new System.Drawing.Point(81, 132);
|
|
||||||
this.clearPasswordsListButton.Name = "clearPasswordsListButton";
|
|
||||||
this.clearPasswordsListButton.Size = new System.Drawing.Size(66, 23);
|
|
||||||
this.clearPasswordsListButton.TabIndex = 4;
|
|
||||||
this.clearPasswordsListButton.Text = "Clear";
|
|
||||||
this.clearPasswordsListButton.UseVisualStyleBackColor = true;
|
|
||||||
this.clearPasswordsListButton.Click += new System.EventHandler(this.ClearPasswordsListButton_Click);
|
|
||||||
//
|
|
||||||
// lowercaseCheckBox
|
|
||||||
//
|
|
||||||
this.lowercaseCheckBox.AutoSize = true;
|
|
||||||
this.lowercaseCheckBox.Checked = true;
|
|
||||||
this.lowercaseCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
||||||
this.lowercaseCheckBox.Location = new System.Drawing.Point(55, 21);
|
|
||||||
this.lowercaseCheckBox.Name = "lowercaseCheckBox";
|
|
||||||
this.lowercaseCheckBox.Size = new System.Drawing.Size(41, 17);
|
|
||||||
this.lowercaseCheckBox.TabIndex = 7;
|
|
||||||
this.lowercaseCheckBox.Text = "a-z";
|
|
||||||
this.lowercaseCheckBox.UseVisualStyleBackColor = true;
|
|
||||||
this.lowercaseCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
|
|
||||||
this.lowercaseCheckBox.Click += new System.EventHandler(this.LowercaseCheckBox_Click);
|
|
||||||
//
|
|
||||||
// uppercaseCheckBox
|
|
||||||
//
|
|
||||||
this.uppercaseCheckBox.AutoSize = true;
|
|
||||||
this.uppercaseCheckBox.Checked = true;
|
|
||||||
this.uppercaseCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
||||||
this.uppercaseCheckBox.Location = new System.Drawing.Point(6, 21);
|
|
||||||
this.uppercaseCheckBox.Name = "uppercaseCheckBox";
|
|
||||||
this.uppercaseCheckBox.Size = new System.Drawing.Size(43, 17);
|
|
||||||
this.uppercaseCheckBox.TabIndex = 8;
|
|
||||||
this.uppercaseCheckBox.Text = "A-Z";
|
|
||||||
this.uppercaseCheckBox.UseVisualStyleBackColor = true;
|
|
||||||
this.uppercaseCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
|
|
||||||
this.uppercaseCheckBox.Click += new System.EventHandler(this.UppercaseCheckBox_Click);
|
|
||||||
//
|
|
||||||
// numericCheckBox
|
|
||||||
//
|
|
||||||
this.numericCheckBox.AutoSize = true;
|
|
||||||
this.numericCheckBox.Checked = true;
|
|
||||||
this.numericCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
||||||
this.numericCheckBox.Location = new System.Drawing.Point(102, 21);
|
|
||||||
this.numericCheckBox.Name = "numericCheckBox";
|
|
||||||
this.numericCheckBox.Size = new System.Drawing.Size(42, 17);
|
|
||||||
this.numericCheckBox.TabIndex = 9;
|
|
||||||
this.numericCheckBox.Text = "0-9";
|
|
||||||
this.numericCheckBox.UseVisualStyleBackColor = true;
|
|
||||||
this.numericCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
|
|
||||||
this.numericCheckBox.Click += new System.EventHandler(this.NumericCheckBox_Click);
|
|
||||||
//
|
|
||||||
// passwordLengthLabel
|
|
||||||
//
|
|
||||||
this.passwordLengthLabel.AutoSize = true;
|
|
||||||
this.passwordLengthLabel.Location = new System.Drawing.Point(6, 9);
|
|
||||||
this.passwordLengthLabel.Name = "passwordLengthLabel";
|
|
||||||
this.passwordLengthLabel.Size = new System.Drawing.Size(130, 13);
|
|
||||||
this.passwordLengthLabel.TabIndex = 8;
|
|
||||||
this.passwordLengthLabel.Text = "Password length [4-256]";
|
|
||||||
//
|
|
||||||
// numberOfStringsLabel
|
|
||||||
//
|
|
||||||
this.numberOfStringsLabel.AutoSize = true;
|
|
||||||
this.numberOfStringsLabel.Location = new System.Drawing.Point(6, 37);
|
|
||||||
this.numberOfStringsLabel.Name = "numberOfStringsLabel";
|
|
||||||
this.numberOfStringsLabel.Size = new System.Drawing.Size(143, 13);
|
|
||||||
this.numberOfStringsLabel.TabIndex = 9;
|
|
||||||
this.numberOfStringsLabel.Text = "Number of strings [1-1000]";
|
|
||||||
//
|
|
||||||
// passwordLengthTextBox
|
|
||||||
//
|
|
||||||
this.passwordLengthTextBox.Location = new System.Drawing.Point(166, 6);
|
|
||||||
this.passwordLengthTextBox.Name = "passwordLengthTextBox";
|
|
||||||
this.passwordLengthTextBox.Size = new System.Drawing.Size(125, 22);
|
|
||||||
this.passwordLengthTextBox.TabIndex = 5;
|
|
||||||
this.passwordLengthTextBox.Text = "40";
|
|
||||||
this.passwordLengthTextBox.TextChanged += new System.EventHandler(this.PasswordValidation);
|
|
||||||
this.passwordLengthTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.PasswordLengthTextBox_KeyPress);
|
|
||||||
//
|
|
||||||
// numberOfStringsTextBox
|
|
||||||
//
|
|
||||||
this.numberOfStringsTextBox.Location = new System.Drawing.Point(166, 34);
|
|
||||||
this.numberOfStringsTextBox.Name = "numberOfStringsTextBox";
|
|
||||||
this.numberOfStringsTextBox.Size = new System.Drawing.Size(125, 22);
|
|
||||||
this.numberOfStringsTextBox.TabIndex = 6;
|
|
||||||
this.numberOfStringsTextBox.Text = "10";
|
|
||||||
this.numberOfStringsTextBox.TextChanged += new System.EventHandler(this.PasswordValidation);
|
|
||||||
this.numberOfStringsTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.PasswordLengthTextBox_KeyPress);
|
|
||||||
//
|
|
||||||
// copyAllButton
|
|
||||||
//
|
|
||||||
this.copyAllButton.AutoSize = true;
|
|
||||||
this.copyAllButton.Location = new System.Drawing.Point(225, 132);
|
|
||||||
this.copyAllButton.Name = "copyAllButton";
|
|
||||||
this.copyAllButton.Size = new System.Drawing.Size(66, 23);
|
|
||||||
this.copyAllButton.TabIndex = 3;
|
|
||||||
this.copyAllButton.Text = "Copy all";
|
|
||||||
this.copyAllButton.UseVisualStyleBackColor = true;
|
|
||||||
this.copyAllButton.Click += new System.EventHandler(this.CopyAllButton_Click);
|
|
||||||
this.copyAllButton.MouseEnter += new System.EventHandler(this.CopyAllButton_MouseEnter);
|
|
||||||
//
|
|
||||||
// copyLastButton
|
|
||||||
//
|
|
||||||
this.copyLastButton.AutoSize = true;
|
|
||||||
this.copyLastButton.Location = new System.Drawing.Point(153, 132);
|
|
||||||
this.copyLastButton.Name = "copyLastButton";
|
|
||||||
this.copyLastButton.Size = new System.Drawing.Size(66, 23);
|
|
||||||
this.copyLastButton.TabIndex = 2;
|
|
||||||
this.copyLastButton.Text = "Copy last";
|
|
||||||
this.copyLastButton.UseVisualStyleBackColor = true;
|
|
||||||
this.copyLastButton.Click += new System.EventHandler(this.CopyLastButton_Click);
|
|
||||||
this.copyLastButton.MouseEnter += new System.EventHandler(this.CopyLastButton_MouseEnter);
|
|
||||||
//
|
|
||||||
// passwordGeneratorToolTip
|
|
||||||
//
|
|
||||||
this.passwordGeneratorToolTip.AutoPopDelay = 1000;
|
|
||||||
this.passwordGeneratorToolTip.InitialDelay = 1;
|
|
||||||
this.passwordGeneratorToolTip.ReshowDelay = 100;
|
|
||||||
//
|
|
||||||
// specialCheckBox
|
|
||||||
//
|
|
||||||
this.specialCheckBox.AutoSize = true;
|
|
||||||
this.specialCheckBox.Location = new System.Drawing.Point(150, 21);
|
|
||||||
this.specialCheckBox.Name = "specialCheckBox";
|
|
||||||
this.specialCheckBox.Size = new System.Drawing.Size(117, 17);
|
|
||||||
this.specialCheckBox.TabIndex = 13;
|
|
||||||
this.specialCheckBox.Text = "Special characters";
|
|
||||||
this.passwordGeneratorToolTip.SetToolTip(this.specialCheckBox, "/ \\ ! ? @ # & $ % №");
|
|
||||||
this.specialCheckBox.UseVisualStyleBackColor = true;
|
|
||||||
this.specialCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
|
|
||||||
this.specialCheckBox.Click += new System.EventHandler(this.SpecialCheckBox_Click);
|
|
||||||
this.specialCheckBox.MouseEnter += new System.EventHandler(this.SpecialCheckBox_MouseEnter);
|
|
||||||
//
|
|
||||||
// additionalCheckBox
|
|
||||||
//
|
|
||||||
this.additionalCheckBox.AutoSize = true;
|
|
||||||
this.additionalCheckBox.Location = new System.Drawing.Point(80, 41);
|
|
||||||
this.additionalCheckBox.Name = "additionalCheckBox";
|
|
||||||
this.additionalCheckBox.Size = new System.Drawing.Size(80, 17);
|
|
||||||
this.additionalCheckBox.TabIndex = 13;
|
|
||||||
this.additionalCheckBox.Text = "Additional";
|
|
||||||
this.passwordGeneratorToolTip.SetToolTip(this.additionalCheckBox, "\" ; _ - . = * + : ^ , | \'");
|
|
||||||
this.additionalCheckBox.UseVisualStyleBackColor = true;
|
|
||||||
this.additionalCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
|
|
||||||
this.additionalCheckBox.Click += new System.EventHandler(this.additionalCheckBox_Click);
|
|
||||||
this.additionalCheckBox.MouseEnter += new System.EventHandler(this.SpecialCheckBox_MouseEnter);
|
|
||||||
//
|
|
||||||
// bracketsCheckBox
|
|
||||||
//
|
|
||||||
this.bracketsCheckBox.AutoSize = true;
|
|
||||||
this.bracketsCheckBox.Location = new System.Drawing.Point(6, 41);
|
|
||||||
this.bracketsCheckBox.Name = "bracketsCheckBox";
|
|
||||||
this.bracketsCheckBox.Size = new System.Drawing.Size(68, 17);
|
|
||||||
this.bracketsCheckBox.TabIndex = 13;
|
|
||||||
this.bracketsCheckBox.Text = "Brackets";
|
|
||||||
this.passwordGeneratorToolTip.SetToolTip(this.bracketsCheckBox, "( ) { } [ ] < >");
|
|
||||||
this.bracketsCheckBox.UseVisualStyleBackColor = true;
|
|
||||||
this.bracketsCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
|
|
||||||
this.bracketsCheckBox.Click += new System.EventHandler(this.BracketsCheckBox_Click);
|
|
||||||
this.bracketsCheckBox.MouseEnter += new System.EventHandler(this.SpecialCheckBox_MouseEnter);
|
|
||||||
//
|
|
||||||
// specialGroupBox
|
|
||||||
//
|
|
||||||
this.specialGroupBox.Controls.Add(this.bracketsCheckBox);
|
|
||||||
this.specialGroupBox.Controls.Add(this.additionalCheckBox);
|
|
||||||
this.specialGroupBox.Controls.Add(this.uppercaseCheckBox);
|
|
||||||
this.specialGroupBox.Controls.Add(this.lowercaseCheckBox);
|
|
||||||
this.specialGroupBox.Controls.Add(this.numericCheckBox);
|
|
||||||
this.specialGroupBox.Controls.Add(this.specialCheckBox);
|
|
||||||
this.specialGroupBox.Location = new System.Drawing.Point(9, 62);
|
|
||||||
this.specialGroupBox.Name = "specialGroupBox";
|
|
||||||
this.specialGroupBox.Size = new System.Drawing.Size(282, 64);
|
|
||||||
this.specialGroupBox.TabIndex = 12;
|
|
||||||
this.specialGroupBox.TabStop = false;
|
|
||||||
this.specialGroupBox.Text = "Use characters";
|
|
||||||
//
|
|
||||||
// PasswordGeneratorFrom
|
|
||||||
//
|
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
||||||
this.ClientSize = new System.Drawing.Size(298, 344);
|
|
||||||
this.Controls.Add(this.specialGroupBox);
|
|
||||||
this.Controls.Add(this.copyLastButton);
|
|
||||||
this.Controls.Add(this.copyAllButton);
|
|
||||||
this.Controls.Add(this.numberOfStringsTextBox);
|
|
||||||
this.Controls.Add(this.passwordLengthTextBox);
|
|
||||||
this.Controls.Add(this.numberOfStringsLabel);
|
|
||||||
this.Controls.Add(this.passwordLengthLabel);
|
|
||||||
this.Controls.Add(this.clearPasswordsListButton);
|
|
||||||
this.Controls.Add(this.passwordsListTextBox);
|
|
||||||
this.Controls.Add(this.generateButton);
|
|
||||||
this.Font = new System.Drawing.Font("Segoe UI", 8.25F);
|
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
||||||
this.MaximizeBox = false;
|
|
||||||
this.Name = "PasswordGeneratorFrom";
|
|
||||||
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
|
||||||
this.Text = "Password Generator";
|
|
||||||
this.Deactivate += new System.EventHandler(this.PasswordGeneratorFrom_Deactivate);
|
|
||||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.PasswordGeneratorFrom_FormClosing);
|
|
||||||
this.Load += new System.EventHandler(this.PasswordGeneratorFrom_Load);
|
|
||||||
this.specialGroupBox.ResumeLayout(false);
|
|
||||||
this.specialGroupBox.PerformLayout();
|
|
||||||
this.ResumeLayout(false);
|
|
||||||
this.PerformLayout();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
private System.Windows.Forms.Button generateButton;
|
|
||||||
private System.Windows.Forms.TextBox passwordsListTextBox;
|
|
||||||
private System.Windows.Forms.Button clearPasswordsListButton;
|
|
||||||
private System.Windows.Forms.CheckBox lowercaseCheckBox;
|
|
||||||
private System.Windows.Forms.CheckBox uppercaseCheckBox;
|
|
||||||
private System.Windows.Forms.CheckBox numericCheckBox;
|
|
||||||
private System.Windows.Forms.Label passwordLengthLabel;
|
|
||||||
private System.Windows.Forms.Label numberOfStringsLabel;
|
|
||||||
private System.Windows.Forms.TextBox passwordLengthTextBox;
|
|
||||||
private System.Windows.Forms.TextBox numberOfStringsTextBox;
|
|
||||||
private System.Windows.Forms.Button copyAllButton;
|
|
||||||
private System.Windows.Forms.Button copyLastButton;
|
|
||||||
private System.Windows.Forms.ToolTip passwordGeneratorToolTip;
|
|
||||||
private System.Windows.Forms.GroupBox specialGroupBox;
|
|
||||||
private System.Windows.Forms.CheckBox specialCheckBox;
|
|
||||||
private System.Windows.Forms.CheckBox additionalCheckBox;
|
|
||||||
private System.Windows.Forms.CheckBox bracketsCheckBox;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,239 +0,0 @@
|
||||||
using Crypto_Notepad.Properties;
|
|
||||||
using PasswordGenerator;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace Crypto_Notepad
|
|
||||||
{
|
|
||||||
public partial class PasswordGeneratorFrom : Form
|
|
||||||
{
|
|
||||||
Settings settings = Settings.Default;
|
|
||||||
public PasswordGeneratorFrom()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Methods
|
|
||||||
private IEnumerable<string> GeneratePasswordGroup()
|
|
||||||
{
|
|
||||||
IPassword pwd;
|
|
||||||
bool includeSpecial = true;
|
|
||||||
string main = @"/\!?@#&$%№";
|
|
||||||
string additional = "\";_-.=*+:^,|'";
|
|
||||||
string brackets = "(){}[]<>";
|
|
||||||
|
|
||||||
if (!specialCheckBox.Checked)
|
|
||||||
{
|
|
||||||
main = "";
|
|
||||||
}
|
|
||||||
if (!additionalCheckBox.Checked)
|
|
||||||
{
|
|
||||||
additional = "";
|
|
||||||
}
|
|
||||||
if (!bracketsCheckBox.Checked)
|
|
||||||
{
|
|
||||||
brackets = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!specialCheckBox.Checked & !additionalCheckBox.Checked & !bracketsCheckBox.Checked)
|
|
||||||
{
|
|
||||||
includeSpecial = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (includeSpecial)
|
|
||||||
{
|
|
||||||
pwd = new Password(
|
|
||||||
includeLowercase: lowercaseCheckBox.Checked,
|
|
||||||
includeUppercase: uppercaseCheckBox.Checked,
|
|
||||||
includeNumeric: numericCheckBox.Checked,
|
|
||||||
includeSpecial: false,
|
|
||||||
passwordLength: int.Parse(passwordLengthTextBox.Text)).IncludeSpecial(main + additional + brackets);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
pwd = new Password(
|
|
||||||
includeLowercase: lowercaseCheckBox.Checked,
|
|
||||||
includeUppercase: uppercaseCheckBox.Checked,
|
|
||||||
includeNumeric: numericCheckBox.Checked,
|
|
||||||
includeSpecial: false,
|
|
||||||
passwordLength: int.Parse(passwordLengthTextBox.Text));
|
|
||||||
}
|
|
||||||
return pwd.NextGroup(Convert.ToInt32(numberOfStringsTextBox.Text));
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
#region Event Handlers
|
|
||||||
private void GenerateButton_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
passwordsListTextBox.AppendLine(string.Join(Environment.NewLine, GeneratePasswordGroup().ToArray()));
|
|
||||||
}
|
|
||||||
|
|
||||||
private void ClearPasswordsListButton_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
passwordsListTextBox.Clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void PasswordLengthTextBox_KeyPress(object sender, KeyPressEventArgs e)
|
|
||||||
{
|
|
||||||
if (!char.IsControl(e.KeyChar) & !char.IsDigit(e.KeyChar))
|
|
||||||
{
|
|
||||||
e.Handled = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void PasswordGeneratorFrom_Load(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
CenterToParent();
|
|
||||||
lowercaseCheckBox.Checked = settings.passwordGeneratorLowercase;
|
|
||||||
uppercaseCheckBox.Checked = settings.passwordGeneratorUppercase;
|
|
||||||
numericCheckBox.Checked = settings.passwordGeneratorNumeric;
|
|
||||||
specialCheckBox.Checked = settings.passwordGeneratorSpecial;
|
|
||||||
bracketsCheckBox.Checked = settings.passwordGeneratorBrackets;
|
|
||||||
additionalCheckBox.Checked = settings.passwordGeneratorAdditional;
|
|
||||||
passwordLengthTextBox.Text = settings.passwordGeneratorLength;
|
|
||||||
numberOfStringsTextBox.Text = settings.passwordGeneratorNumberOfStrings;
|
|
||||||
passwordsListTextBox.Text = string.Join(Environment.NewLine, GeneratePasswordGroup().ToArray());
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LowercaseCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
settings.passwordGeneratorLowercase = lowercaseCheckBox.Checked;
|
|
||||||
settings.Save();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void UppercaseCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
settings.passwordGeneratorUppercase = uppercaseCheckBox.Checked;
|
|
||||||
settings.Save();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void NumericCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
settings.passwordGeneratorNumeric = numericCheckBox.Checked;
|
|
||||||
settings.Save();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SpecialCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
settings.passwordGeneratorSpecial = specialCheckBox.Checked;
|
|
||||||
settings.Save();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void PasswordGeneratorFrom_FormClosing(object sender, FormClosingEventArgs e)
|
|
||||||
{
|
|
||||||
if (!settings.passwordGeneratorLowercase & !settings.passwordGeneratorUppercase
|
|
||||||
& !settings.passwordGeneratorNumeric & !settings.passwordGeneratorSpecial)
|
|
||||||
{
|
|
||||||
settings.passwordGeneratorLowercase = true;
|
|
||||||
}
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (Enumerable.Range(4, 256).Contains(int.Parse(passwordLengthTextBox.Text)))
|
|
||||||
{
|
|
||||||
settings.passwordGeneratorLength = passwordLengthTextBox.Text;
|
|
||||||
}
|
|
||||||
if (Enumerable.Range(1, 1000).Contains(int.Parse(numberOfStringsTextBox.Text)))
|
|
||||||
{
|
|
||||||
settings.passwordGeneratorNumberOfStrings = numberOfStringsTextBox.Text;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
}
|
|
||||||
settings.Save();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void PasswordValidation(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (!Enumerable.Range(1, 1000).Contains(int.Parse(numberOfStringsTextBox.Text)) |
|
|
||||||
!Enumerable.Range(4, 256).Contains(int.Parse(passwordLengthTextBox.Text)) |
|
|
||||||
!lowercaseCheckBox.Checked &
|
|
||||||
!uppercaseCheckBox.Checked &
|
|
||||||
!numericCheckBox.Checked &
|
|
||||||
!specialCheckBox.Checked &
|
|
||||||
!additionalCheckBox.Checked &
|
|
||||||
!bracketsCheckBox.Checked |
|
|
||||||
string.IsNullOrWhiteSpace(numberOfStringsTextBox.Text.Trim('0')))
|
|
||||||
{
|
|
||||||
generateButton.Enabled = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
generateButton.Enabled = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
generateButton.Enabled = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CopyAllButton_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
Clipboard.SetText(passwordsListTextBox.Text);
|
|
||||||
passwordGeneratorToolTip.SetToolTip(copyAllButton, "Copied");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CopyLastButton_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
Clipboard.SetText(passwordsListTextBox.Lines[passwordsListTextBox.Lines.Length - 1]);
|
|
||||||
passwordGeneratorToolTip.SetToolTip(copyLastButton, "Copied");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void PasswordsListTextBox_TextChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (string.IsNullOrEmpty(passwordsListTextBox.Text))
|
|
||||||
{
|
|
||||||
copyLastButton.Enabled = false;
|
|
||||||
copyAllButton.Enabled = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
copyLastButton.Enabled = true;
|
|
||||||
copyAllButton.Enabled = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CopyLastButton_MouseEnter(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
passwordGeneratorToolTip.AutoPopDelay = 1000;
|
|
||||||
passwordGeneratorToolTip.SetToolTip(copyLastButton, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CopyAllButton_MouseEnter(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
passwordGeneratorToolTip.AutoPopDelay = 1000;
|
|
||||||
passwordGeneratorToolTip.SetToolTip(copyAllButton, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void PasswordGeneratorFrom_Deactivate(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
PasswordGeneratorFrom_FormClosing(null, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
private void SpecialCheckBox_MouseEnter(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
passwordGeneratorToolTip.AutoPopDelay = 10000;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void BracketsCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
settings.passwordGeneratorBrackets = bracketsCheckBox.Checked;
|
|
||||||
settings.Save();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void additionalCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
settings.passwordGeneratorAdditional = additionalCheckBox.Checked;
|
|
||||||
settings.Save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -130,6 +130,24 @@
|
||||||
<value>260, 17</value>
|
<value>260, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
<data name="lockToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||||
|
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIdSURBVDhPlZPdS5NRHMd/5zkQeNtFF0H9A9aVBF12
|
||||||
|
4U10ZXCKDFaIyjaqi0HT1rTFtDfFFAdlU9LMqJVrs1Zt2laDqIYtTXMXMXvDlwoqoosw6tf5Pu4RE4N1
|
||||||
|
4MP5vX2/5zzPw0NYmzcKOllp0K16g+54JCV9sizlky7N6QIu1NDDDGahMZcltIgdkVvSrRuCn541vh2P
|
||||||
|
OT8CxKiht3wWWgq5jJV45p54Z4fObH15aq/oAIhRQ2/FLFHELZfocRjg3OzTpl+BmjXxtn2CAGLU0MNM
|
||||||
|
+LCkmwXowXFpktJE6yS17xf9rxJuDlSLoQt2vBttoOP8SD2jh1OHGyXdP7bIcgNHokGePbGHro6Gavh8
|
||||||
|
rRjsdohr/t2UQRzr2MHoRdxGUBscXM2ghT8M8MLrbv6eC/DnbCvPP/Zz7raNpxM2nk/b+FvGxj+nqlgb
|
||||||
|
tK9q8Humj39MdfLXbAvPPfLzm6SHn19XnIsqfh9X/OWh4oVx278NMqFazt6w84vIAZ6IHuKxsJNTPYrT
|
||||||
|
vYozA4ontNn0vcq/DYYbpEVbsY9w1yM740clAep3GhbBYm/Qazcu9unPCah5p2FxqdgbNFUYl5srtEZD
|
||||||
|
QgiLsFKK811lJohBV125mWO3aiFFoxoqXbf4O1gGI/xuO3O+nL1en0lysMrMsVs1zMBgSazXWs0m3za6
|
||||||
|
goY2mgS7SsUYcuxWrXAyZkLQFLRUooHf+v9Ea6jkD7YQxEPE9EcrAAAAAElFTkSuQmCC
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>969, 17</value>
|
||||||
|
</metadata>
|
||||||
<data name="newToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="newToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||||
|
|
@ -145,9 +163,21 @@
|
||||||
ls8mjzluOrP5k2QAWNYAQ/B729ITVjwAAAAASUVORK5CYII=
|
ls8mjzluOrP5k2QAWNYAQ/B729ITVjwAAAAASUVORK5CYII=
|
||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<data name="changeKeyToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>969, 17</value>
|
<value>
|
||||||
</metadata>
|
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||||
|
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIfSURBVDhPfYxdSJNhFMfPu/VJhd4E5UVEETFyk+gq
|
||||||
|
gkUX3qjhjbVGFJaQbaBUxIoym81JgX0oY2RQ8I4JkzSdUpk4gq0ZW28vpKgwWh/gvFn2QeWqi07nyFbP
|
||||||
|
08Ue+PE85zn//w8Q8S+PLxoh0mpUnrqNZsJBePLw28w7zogdaaCl8qTFWJPwm9QFvTX9Yfo6zmtuzDxr
|
||||||
|
Sid821TecUbsSIIhl6Ei1rU9+PP9XZxQK2d6L5SMBc6vGRv3mWa+vjqH0ZtbgpwRO5IgdMpw+stsZ/bF
|
||||||
|
/cp0sAOu9F6DjQy/nwdM6U9JZ5YzYkcS3HMaun9nVAzfLtVDtyAhMuRfrf+aakbOiB1J4GtQvLm3Pbkf
|
||||||
|
b+7g95QfM8k2TEWacS7mxM9JB3576chxRuxIgs6jSnU8WKctUvmjdhWnhhsxHqjB2cH9uDBxHKM9ezTO
|
||||||
|
iB1J4LXDyvZD0BS+YY2/i7VkU+NnUH9wGCcHbdmBjvI47zgjdv4XQNtBWO4+APuI/ozmwcmRY8hv/uMd
|
||||||
|
Z8SONOQFQGEmzILp0RMsCPMf74oK8sUCD1nAN2HhPxZ4bEUEl+tA5BELXkddi/wu/NfvLSLgY98N4Kpe
|
||||||
|
oo8FfBOWs1UAm9cvReSONORPbQXASSuoLJhLXkKHFQL8VzhSRxoAFGIFse7ILgjN616ku8+6FWrpr4RY
|
||||||
|
RRikjjTQklhLlO0sA7vNDBHLBqineQexiSgllv3rIPwBd+IjYDkT9I0AAAAASUVORK5CYII=
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
<data name="openToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="openToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
||||||
|
|
@ -242,36 +272,6 @@
|
||||||
IwpvUR5KXgTlksvJSQ6azRrnFgsfGAyPEr46Itqn+s5OarbbgQ8vrShTlEtOJJQaH//GnkgwBNVardRg
|
IwpvUR5KXgTlksvJSQ6azRrnFgsfGAyPEr46Itqn+s5OarbbgQ8vrShTlEtOJJQaH//GnkgwBNVardRg
|
||||||
sy1DgCqXnDkcvCsSsCd4KypC6xLexARSBqGq2mrdKOW1wnWwEywWIvxivJOMfKMXmVKWjEKToa5uobKx
|
sy1DgCqXnDkcvCsSsCd4KypC6xLexARSBqGq2mrdKOW1wnWwEywWIvxivJOMfKMXmVKWjEKToa5uobKx
|
||||||
ces/oBcZIjJ+Aga8g1BwXIV5AAAAAElFTkSuQmCC
|
ces/oBcZIjJ+Aga8g1BwXIV5AAAAAElFTkSuQmCC
|
||||||
</value>
|
|
||||||
</data>
|
|
||||||
<data name="changePasswordToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>
|
|
||||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
|
||||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIfSURBVDhPfYxdSJNhFMfPu/VJhd4E5UVEETFyk+gq
|
|
||||||
gkUX3qjhjbVGFJaQbaBUxIoym81JgX0oY2RQ8I4JkzSdUpk4gq0ZW28vpKgwWh/gvFn2QeWqi07nyFbP
|
|
||||||
08Ue+PE85zn//w8Q8S+PLxoh0mpUnrqNZsJBePLw28w7zogdaaCl8qTFWJPwm9QFvTX9Yfo6zmtuzDxr
|
|
||||||
Sid821TecUbsSIIhl6Ei1rU9+PP9XZxQK2d6L5SMBc6vGRv3mWa+vjqH0ZtbgpwRO5IgdMpw+stsZ/bF
|
|
||||||
/cp0sAOu9F6DjQy/nwdM6U9JZ5YzYkcS3HMaun9nVAzfLtVDtyAhMuRfrf+aakbOiB1J4GtQvLm3Pbkf
|
|
||||||
b+7g95QfM8k2TEWacS7mxM9JB3576chxRuxIgs6jSnU8WKctUvmjdhWnhhsxHqjB2cH9uDBxHKM9ezTO
|
|
||||||
iB1J4LXDyvZD0BS+YY2/i7VkU+NnUH9wGCcHbdmBjvI47zgjdv4XQNtBWO4+APuI/ozmwcmRY8hv/uMd
|
|
||||||
Z8SONOQFQGEmzILp0RMsCPMf74oK8sUCD1nAN2HhPxZ4bEUEl+tA5BELXkddi/wu/NfvLSLgY98N4Kpe
|
|
||||||
oo8FfBOWs1UAm9cvReSONORPbQXASSuoLJhLXkKHFQL8VzhSRxoAFGIFse7ILgjN616ku8+6FWrpr4RY
|
|
||||||
RRikjjTQklhLlO0sA7vNDBHLBqineQexiSgllv3rIPwBd+IjYDkT9I0AAAAASUVORK5CYII=
|
|
||||||
</value>
|
|
||||||
</data>
|
|
||||||
<data name="lockToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>
|
|
||||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
|
|
||||||
dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIdSURBVDhPlZPdS5NRHMd/5zkQeNtFF0H9A9aVBF12
|
|
||||||
4U10ZXCKDFaIyjaqi0HT1rTFtDfFFAdlU9LMqJVrs1Zt2laDqIYtTXMXMXvDlwoqoosw6tf5Pu4RE4N1
|
|
||||||
4MP5vX2/5zzPw0NYmzcKOllp0K16g+54JCV9sizlky7N6QIu1NDDDGahMZcltIgdkVvSrRuCn541vh2P
|
|
||||||
OT8CxKiht3wWWgq5jJV45p54Z4fObH15aq/oAIhRQ2/FLFHELZfocRjg3OzTpl+BmjXxtn2CAGLU0MNM
|
|
||||||
+LCkmwXowXFpktJE6yS17xf9rxJuDlSLoQt2vBttoOP8SD2jh1OHGyXdP7bIcgNHokGePbGHro6Gavh8
|
|
||||||
rRjsdohr/t2UQRzr2MHoRdxGUBscXM2ghT8M8MLrbv6eC/DnbCvPP/Zz7raNpxM2nk/b+FvGxj+nqlgb
|
|
||||||
tK9q8Humj39MdfLXbAvPPfLzm6SHn19XnIsqfh9X/OWh4oVx278NMqFazt6w84vIAZ6IHuKxsJNTPYrT
|
|
||||||
vYozA4ontNn0vcq/DYYbpEVbsY9w1yM740clAep3GhbBYm/Qazcu9unPCah5p2FxqdgbNFUYl5srtEZD
|
|
||||||
QgiLsFKK811lJohBV125mWO3aiFFoxoqXbf4O1gGI/xuO3O+nL1en0lysMrMsVs1zMBgSazXWs0m3za6
|
|
||||||
goY2mgS7SsUYcuxWrXAyZkLQFLRUooHf+v9Ea6jkD7YQxEPE9EcrAAAAAElFTkSuQmCC
|
|
||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="settingsToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="settingsToolbarButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
|
@ -6473,15 +6473,6 @@
|
||||||
<metadata name="statusPanelTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="statusPanelTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>389, 17</value>
|
<value>389, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="lockTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>1059, 17</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="clipboardTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>17, 56</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="pasteBoardTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>151, 56</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>99</value>
|
<value>99</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
171
Crypto Notepad/PasswordGeneratorFrom.Designer.cs
generated
Normal file
171
Crypto Notepad/PasswordGeneratorFrom.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,171 @@
|
||||||
|
namespace Crypto_Notepad
|
||||||
|
{
|
||||||
|
partial class PasswordGeneratorFrom
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.generateButton = new System.Windows.Forms.Button();
|
||||||
|
this.passwordsList = new System.Windows.Forms.TextBox();
|
||||||
|
this.clearPasswordsListButton = new System.Windows.Forms.Button();
|
||||||
|
this.includeLowercaseCheckBox = new System.Windows.Forms.CheckBox();
|
||||||
|
this.includeUppercaseCheckBox = new System.Windows.Forms.CheckBox();
|
||||||
|
this.includeNumericCheckBox = new System.Windows.Forms.CheckBox();
|
||||||
|
this.includeSpecialCheckBox = new System.Windows.Forms.CheckBox();
|
||||||
|
this.passwordLengthTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// generateButton
|
||||||
|
//
|
||||||
|
this.generateButton.Location = new System.Drawing.Point(303, 127);
|
||||||
|
this.generateButton.Name = "generateButton";
|
||||||
|
this.generateButton.Size = new System.Drawing.Size(79, 23);
|
||||||
|
this.generateButton.TabIndex = 0;
|
||||||
|
this.generateButton.Text = "Generate";
|
||||||
|
this.generateButton.UseVisualStyleBackColor = true;
|
||||||
|
this.generateButton.Click += new System.EventHandler(this.GenerateButton_Click);
|
||||||
|
//
|
||||||
|
// passwordsList
|
||||||
|
//
|
||||||
|
this.passwordsList.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.passwordsList.Location = new System.Drawing.Point(7, 7);
|
||||||
|
this.passwordsList.Multiline = true;
|
||||||
|
this.passwordsList.Name = "passwordsList";
|
||||||
|
this.passwordsList.ReadOnly = true;
|
||||||
|
this.passwordsList.ScrollBars = System.Windows.Forms.ScrollBars.Both;
|
||||||
|
this.passwordsList.Size = new System.Drawing.Size(290, 172);
|
||||||
|
this.passwordsList.TabIndex = 2;
|
||||||
|
this.passwordsList.WordWrap = false;
|
||||||
|
//
|
||||||
|
// clearPasswordsListButton
|
||||||
|
//
|
||||||
|
this.clearPasswordsListButton.Location = new System.Drawing.Point(303, 156);
|
||||||
|
this.clearPasswordsListButton.Name = "clearPasswordsListButton";
|
||||||
|
this.clearPasswordsListButton.Size = new System.Drawing.Size(79, 23);
|
||||||
|
this.clearPasswordsListButton.TabIndex = 3;
|
||||||
|
this.clearPasswordsListButton.Text = "Clear";
|
||||||
|
this.clearPasswordsListButton.UseVisualStyleBackColor = true;
|
||||||
|
this.clearPasswordsListButton.Click += new System.EventHandler(this.ClearPasswordsListButton_Click);
|
||||||
|
//
|
||||||
|
// includeLowercaseCheckBox
|
||||||
|
//
|
||||||
|
this.includeLowercaseCheckBox.AutoSize = true;
|
||||||
|
this.includeLowercaseCheckBox.Checked = true;
|
||||||
|
this.includeLowercaseCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.includeLowercaseCheckBox.Location = new System.Drawing.Point(303, 7);
|
||||||
|
this.includeLowercaseCheckBox.Name = "includeLowercaseCheckBox";
|
||||||
|
this.includeLowercaseCheckBox.Size = new System.Drawing.Size(79, 17);
|
||||||
|
this.includeLowercaseCheckBox.TabIndex = 4;
|
||||||
|
this.includeLowercaseCheckBox.Text = "Lowercase";
|
||||||
|
this.includeLowercaseCheckBox.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// includeUppercaseCheckBox
|
||||||
|
//
|
||||||
|
this.includeUppercaseCheckBox.AutoSize = true;
|
||||||
|
this.includeUppercaseCheckBox.Checked = true;
|
||||||
|
this.includeUppercaseCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.includeUppercaseCheckBox.Location = new System.Drawing.Point(303, 30);
|
||||||
|
this.includeUppercaseCheckBox.Name = "includeUppercaseCheckBox";
|
||||||
|
this.includeUppercaseCheckBox.Size = new System.Drawing.Size(80, 17);
|
||||||
|
this.includeUppercaseCheckBox.TabIndex = 5;
|
||||||
|
this.includeUppercaseCheckBox.Text = "Uppercase";
|
||||||
|
this.includeUppercaseCheckBox.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// includeNumericCheckBox
|
||||||
|
//
|
||||||
|
this.includeNumericCheckBox.AutoSize = true;
|
||||||
|
this.includeNumericCheckBox.Checked = true;
|
||||||
|
this.includeNumericCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.includeNumericCheckBox.Location = new System.Drawing.Point(303, 53);
|
||||||
|
this.includeNumericCheckBox.Name = "includeNumericCheckBox";
|
||||||
|
this.includeNumericCheckBox.Size = new System.Drawing.Size(68, 17);
|
||||||
|
this.includeNumericCheckBox.TabIndex = 6;
|
||||||
|
this.includeNumericCheckBox.Text = "Numeric";
|
||||||
|
this.includeNumericCheckBox.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// includeSpecialCheckBox
|
||||||
|
//
|
||||||
|
this.includeSpecialCheckBox.AutoSize = true;
|
||||||
|
this.includeSpecialCheckBox.Checked = true;
|
||||||
|
this.includeSpecialCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.includeSpecialCheckBox.Location = new System.Drawing.Point(303, 76);
|
||||||
|
this.includeSpecialCheckBox.Name = "includeSpecialCheckBox";
|
||||||
|
this.includeSpecialCheckBox.Size = new System.Drawing.Size(62, 17);
|
||||||
|
this.includeSpecialCheckBox.TabIndex = 7;
|
||||||
|
this.includeSpecialCheckBox.Text = "Special";
|
||||||
|
this.includeSpecialCheckBox.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// passwordLengthTextBox
|
||||||
|
//
|
||||||
|
this.passwordLengthTextBox.Location = new System.Drawing.Point(303, 99);
|
||||||
|
this.passwordLengthTextBox.Name = "passwordLengthTextBox";
|
||||||
|
this.passwordLengthTextBox.Placeholder = "Length";
|
||||||
|
this.passwordLengthTextBox.PlaceholderActiveForeColor = System.Drawing.Color.Gray;
|
||||||
|
this.passwordLengthTextBox.PlaceholderFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.passwordLengthTextBox.PlaceholderForeColor = System.Drawing.Color.Gray;
|
||||||
|
this.passwordLengthTextBox.Size = new System.Drawing.Size(79, 22);
|
||||||
|
this.passwordLengthTextBox.TabIndex = 8;
|
||||||
|
this.passwordLengthTextBox.Text = "32";
|
||||||
|
this.passwordLengthTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.PasswordLengthTextBox_KeyPress);
|
||||||
|
//
|
||||||
|
// PasswordGeneratorFrom
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(388, 186);
|
||||||
|
this.Controls.Add(this.passwordLengthTextBox);
|
||||||
|
this.Controls.Add(this.includeSpecialCheckBox);
|
||||||
|
this.Controls.Add(this.includeNumericCheckBox);
|
||||||
|
this.Controls.Add(this.includeUppercaseCheckBox);
|
||||||
|
this.Controls.Add(this.includeLowercaseCheckBox);
|
||||||
|
this.Controls.Add(this.clearPasswordsListButton);
|
||||||
|
this.Controls.Add(this.passwordsList);
|
||||||
|
this.Controls.Add(this.generateButton);
|
||||||
|
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||||
|
this.MaximizeBox = false;
|
||||||
|
this.Name = "PasswordGeneratorFrom";
|
||||||
|
this.ShowIcon = false;
|
||||||
|
this.ShowInTaskbar = false;
|
||||||
|
this.Text = "Password Generator";
|
||||||
|
this.Load += new System.EventHandler(this.PasswordGeneratorFrom_Load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Button generateButton;
|
||||||
|
private System.Windows.Forms.TextBox passwordsList;
|
||||||
|
private System.Windows.Forms.Button clearPasswordsListButton;
|
||||||
|
private System.Windows.Forms.CheckBox includeLowercaseCheckBox;
|
||||||
|
private System.Windows.Forms.CheckBox includeUppercaseCheckBox;
|
||||||
|
private System.Windows.Forms.CheckBox includeNumericCheckBox;
|
||||||
|
private System.Windows.Forms.CheckBox includeSpecialCheckBox;
|
||||||
|
private System.Windows.Forms.PlaceholderTextBox passwordLengthTextBox;
|
||||||
|
}
|
||||||
|
}
|
||||||
75
Crypto Notepad/PasswordGeneratorFrom.cs
Normal file
75
Crypto Notepad/PasswordGeneratorFrom.cs
Normal file
|
|
@ -0,0 +1,75 @@
|
||||||
|
using PasswordGenerator;
|
||||||
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace Crypto_Notepad
|
||||||
|
{
|
||||||
|
public partial class PasswordGeneratorFrom : Form
|
||||||
|
{
|
||||||
|
[DllImport("user32.dll")]
|
||||||
|
static extern IntPtr CloseClipboard();
|
||||||
|
public PasswordGeneratorFrom()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
11.Times(() => GenerateButton_Click(null, null));
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GeneratePassword()
|
||||||
|
{
|
||||||
|
var pwd = new Password(
|
||||||
|
includeLowercase: includeLowercaseCheckBox.Checked,
|
||||||
|
includeUppercase: includeUppercaseCheckBox.Checked,
|
||||||
|
includeNumeric: includeNumericCheckBox.Checked,
|
||||||
|
includeSpecial: includeSpecialCheckBox.Checked,
|
||||||
|
passwordLength: int.Parse(passwordLengthTextBox.Text));
|
||||||
|
return pwd.Next();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void GenerateButton_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
PublicVar.messageBoxCenterParent = true;
|
||||||
|
if (string.IsNullOrEmpty(passwordLengthTextBox.Text))
|
||||||
|
{
|
||||||
|
passwordLengthTextBox.Text = 8.ToString();
|
||||||
|
}
|
||||||
|
if (int.Parse(passwordLengthTextBox.Text) < 8)
|
||||||
|
{
|
||||||
|
passwordLengthTextBox.Text = 8.ToString();
|
||||||
|
}
|
||||||
|
if (int.Parse(passwordLengthTextBox.Text) > 128)
|
||||||
|
{
|
||||||
|
passwordLengthTextBox.Text = 128.ToString();
|
||||||
|
}
|
||||||
|
try
|
||||||
|
{
|
||||||
|
passwordsList.AppendLine(GeneratePassword());
|
||||||
|
}
|
||||||
|
catch (ArgumentOutOfRangeException)
|
||||||
|
{
|
||||||
|
using (new CenterWinDialog(this))
|
||||||
|
{
|
||||||
|
DialogResult res = MessageBox.Show(this, "Choose at least one character type", "Uh oh! Something went wrong", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ClearPasswordsListButton_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
passwordsList.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PasswordLengthTextBox_KeyPress(object sender, KeyPressEventArgs e)
|
||||||
|
{
|
||||||
|
if (!char.IsControl(e.KeyChar) & !char.IsDigit(e.KeyChar))
|
||||||
|
{
|
||||||
|
e.Handled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PasswordGeneratorFrom_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
CenterToParent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -117,32 +117,4 @@
|
||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="passwordGeneratorToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>17, 17</value>
|
|
||||||
</metadata>
|
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>
|
|
||||||
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA
|
|
||||||
AAD///8AAAAAAgAAAAwAAAAaABoxWQAtV70AGC5gAAAAKwAAAB4AAAAQAAAABAZtAJkFaQDMBm0AmQdx
|
|
||||||
AAAOjAAA////AAAAAAEAAAAGAAAADQAzXaiFzub/ADNdqQAjPk8AAAAPAAAACAAAAAIMgwDMK98a/wyD
|
|
||||||
AMwNiAAADowAAP///wAAAAAAAAAAAAAvTwAAPmihg8zl/33K5P8APmmiBEM1AA6NAJkOjADMDowAzD3i
|
|
||||||
LP8OjADMDowAzA6NAJn///8AAAAAAAA5WQAAS3YAAEt2qYPM5f8AS3apAEt2LghwOwAQlQDMUudB/1Ln
|
|
||||||
Qf9S50H/UudB/1LnQf8QlQDM////AABUfwAAVH8AAFR/AABUf7aDzOX/dsLc9gBUf7YJeEAAEpwAmRKd
|
|
||||||
AMwSnQDMZutV/xKdAMwSnQDMEpwAmf///wAAVYAAAFWAAABVgAAAVYC1g8zl/wBVgLUAVYAuBWdgABKd
|
|
||||||
AAAToQAAFKQAzHXuZP8UpADME6EAABKdAAD///8AAFmFAABWgQAAVYAAAFWAsYPM5f9muNX/AFWAsQBV
|
|
||||||
gAAFaGEAFKgAABWpAJkVqQDMFakAmRSoAAASnQAA////AABZhQAAVoEFAFWAQQBVgKyDzOX/YbPS/wBV
|
|
||||||
gKwAVYBBAFaBBQVtZAAVqQAAFaoAABWpAAAUqAAAEp0AAP///wAAWYUHAFiEbT6OscV8w+Drcrza/1uu
|
|
||||||
zv9Xr9LrLIatxQBYhG0AWYUHBm5kABWqAAAVqQAAFKgAABKdAAD///8AAV6MS1SkxcyW2vb/iMzu/2ey
|
|
||||||
0/9MosX/Ta/X/2LG7f87mcLMAV6MSwFejQAGcWoAC4RHAAuDRwAKfkcA////AAFjlIWZ3/f3mt74/5ba
|
|
||||||
9f+ByuX/br3a/2rD5P9pyvD/ac309wFjlIUBY5QAAWOUAAFjlAABY5QAAWOUAP///wACap6SoeX+/xCY
|
|
||||||
sc4AkKjJAJCoyQCQqMkAkKjJCZawzm7T+v8Cap6SAmqeAAJqngACap4AAmqeAAJqngD///8AAnCocYzX
|
|
||||||
8etFq8vdAIakggCJpRkAiaUZAIakgimix91qyu/rAnCocQJwqAACcKgAAnCoAAJwqAACcKgA////AAJ2
|
|
||||||
sC8nkcOkneH5/0WhxtYPeqW6C3iiuimUvNZ30fP/Io/CpAJ2sC8Cda8AAnWvAAJ1rwACda8AAnWvAP//
|
|
||||||
/wADe7cBA3y5TCmWyaF+zu3djdXs/4DM5v9txOXdJZTJoQN8uUwDe7cBA3u3AAN7twADe7cAA3u3AAN7
|
|
||||||
twD///8AA3u3AAN+vQEDgL8tA4C/aQOAv4MDgL+DA4C/aQOAvy0Dfr0BA3u3AAN7twADe7cAA3u3AAN7
|
|
||||||
twADe7cAgAMAAIADAADwgAAA8IAAAPCAAADw4wAA8OMAAMA/AACAHwAAgB8AAIAfAACAHwAAgB8AAIAf
|
|
||||||
AACAHwAAwD8AAA==
|
|
||||||
</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
</root>
|
||||||
|
|
@ -62,13 +62,12 @@ static void Main()
|
||||||
|
|
||||||
static class PublicVar
|
static class PublicVar
|
||||||
{
|
{
|
||||||
public static EncryptedString password = new EncryptedString();
|
public static EncryptedString encryptionKey = new EncryptedString();
|
||||||
public static bool passwordChanged = false;
|
public static bool keyChanged = false;
|
||||||
public static bool okPressed = false;
|
public static bool okPressed = false;
|
||||||
public static bool messageBoxCenterParent = false;
|
public static bool messageBoxCenterParent = false;
|
||||||
public const string appName = "Crypto Notepad";
|
public const string appName = "Crypto Notepad";
|
||||||
public static string openFileName;
|
public static string openFileName;
|
||||||
public static bool metadataCorrupt = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static class TypedPassword
|
static class TypedPassword
|
||||||
|
|
|
||||||
|
|
@ -33,4 +33,4 @@
|
||||||
// используя "*", как показано ниже:
|
// используя "*", как показано ниже:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.7.3.0")]
|
[assembly: AssemblyFileVersion("1.6.3.0")]
|
||||||
|
|
|
||||||
226
Crypto Notepad/Properties/Resources.Designer.cs
generated
226
Crypto Notepad/Properties/Resources.Designer.cs
generated
|
|
@ -1,10 +1,10 @@
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// Этот код создан программой.
|
||||||
// Runtime Version:4.0.30319.42000
|
// Исполняемая версия:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||||
// the code is regenerated.
|
// повторной генерации кода.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -13,13 +13,13 @@ namespace Crypto_Notepad.Properties {
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
/// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
// Этот класс создан автоматически классом StronglyTypedResourceBuilder
|
||||||
// class via a tool like ResGen or Visual Studio.
|
// с помощью такого средства, как ResGen или Visual Studio.
|
||||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
// Чтобы добавить или удалить член, измените файл .ResX и снова запустите ResGen
|
||||||
// with the /str option, or rebuild your VS project.
|
// с параметром /str или перестройте свой проект VS.
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
internal class Resources {
|
internal class Resources {
|
||||||
|
|
@ -33,7 +33,7 @@ internal Resources() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the cached ResourceManager instance used by this class.
|
/// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||||
|
|
@ -47,8 +47,8 @@ internal Resources() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Overrides the current thread's CurrentUICulture property for all
|
/// Перезаписывает свойство CurrentUICulture текущего потока для всех
|
||||||
/// resource lookups using this strongly typed resource class.
|
/// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
internal static global::System.Globalization.CultureInfo Culture {
|
internal static global::System.Globalization.CultureInfo Culture {
|
||||||
|
|
@ -61,17 +61,7 @@ internal Resources() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap application {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("application", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap application_blue {
|
internal static System.Drawing.Bitmap application_blue {
|
||||||
get {
|
get {
|
||||||
|
|
@ -81,17 +71,7 @@ internal static System.Drawing.Bitmap application_blue {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap application_dock_180 {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("application-dock-180", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap applications_blue {
|
internal static System.Drawing.Bitmap applications_blue {
|
||||||
get {
|
get {
|
||||||
|
|
@ -101,7 +81,7 @@ internal static System.Drawing.Bitmap applications_blue {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap arrow_left {
|
internal static System.Drawing.Bitmap arrow_left {
|
||||||
get {
|
get {
|
||||||
|
|
@ -111,7 +91,7 @@ internal static System.Drawing.Bitmap arrow_left {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap arrow_right {
|
internal static System.Drawing.Bitmap arrow_right {
|
||||||
get {
|
get {
|
||||||
|
|
@ -121,7 +101,7 @@ internal static System.Drawing.Bitmap arrow_right {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap big_lock {
|
internal static System.Drawing.Bitmap big_lock {
|
||||||
get {
|
get {
|
||||||
|
|
@ -131,7 +111,7 @@ internal static System.Drawing.Bitmap big_lock {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap clipboard {
|
internal static System.Drawing.Bitmap clipboard {
|
||||||
get {
|
get {
|
||||||
|
|
@ -141,37 +121,7 @@ internal static System.Drawing.Bitmap clipboard {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap clipboard_minus {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("clipboard_minus", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap clipboard_text {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("clipboard_text", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap clock_plus {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("clock_plus", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap cross_button {
|
internal static System.Drawing.Bitmap cross_button {
|
||||||
get {
|
get {
|
||||||
|
|
@ -181,17 +131,17 @@ internal static System.Drawing.Bitmap cross_button {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap disk_minus {
|
internal static System.Drawing.Bitmap disk__minus {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("disk_minus", resourceCulture);
|
object obj = ResourceManager.GetObject("disk__minus", resourceCulture);
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap disk_return_black {
|
internal static System.Drawing.Bitmap disk_return_black {
|
||||||
get {
|
get {
|
||||||
|
|
@ -201,7 +151,7 @@ internal static System.Drawing.Bitmap disk_return_black {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap disks_black {
|
internal static System.Drawing.Bitmap disks_black {
|
||||||
get {
|
get {
|
||||||
|
|
@ -211,7 +161,7 @@ internal static System.Drawing.Bitmap disks_black {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap document {
|
internal static System.Drawing.Bitmap document {
|
||||||
get {
|
get {
|
||||||
|
|
@ -221,7 +171,7 @@ internal static System.Drawing.Bitmap document {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap document_copy {
|
internal static System.Drawing.Bitmap document_copy {
|
||||||
get {
|
get {
|
||||||
|
|
@ -231,7 +181,7 @@ internal static System.Drawing.Bitmap document_copy {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap document_minus {
|
internal static System.Drawing.Bitmap document_minus {
|
||||||
get {
|
get {
|
||||||
|
|
@ -241,17 +191,7 @@ internal static System.Drawing.Bitmap document_minus {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap document_pencil {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("document_pencil", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap document_plus {
|
internal static System.Drawing.Bitmap document_plus {
|
||||||
get {
|
get {
|
||||||
|
|
@ -261,7 +201,7 @@ internal static System.Drawing.Bitmap document_plus {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap document_text {
|
internal static System.Drawing.Bitmap document_text {
|
||||||
get {
|
get {
|
||||||
|
|
@ -271,7 +211,7 @@ internal static System.Drawing.Bitmap document_text {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap eye {
|
internal static System.Drawing.Bitmap eye {
|
||||||
get {
|
get {
|
||||||
|
|
@ -281,7 +221,7 @@ internal static System.Drawing.Bitmap eye {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap eye_half {
|
internal static System.Drawing.Bitmap eye_half {
|
||||||
get {
|
get {
|
||||||
|
|
@ -291,7 +231,7 @@ internal static System.Drawing.Bitmap eye_half {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap folder_horizontal {
|
internal static System.Drawing.Bitmap folder_horizontal {
|
||||||
get {
|
get {
|
||||||
|
|
@ -301,7 +241,7 @@ internal static System.Drawing.Bitmap folder_horizontal {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap folder_open_document {
|
internal static System.Drawing.Bitmap folder_open_document {
|
||||||
get {
|
get {
|
||||||
|
|
@ -311,7 +251,7 @@ internal static System.Drawing.Bitmap folder_open_document {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap gear {
|
internal static System.Drawing.Bitmap gear {
|
||||||
get {
|
get {
|
||||||
|
|
@ -321,7 +261,7 @@ internal static System.Drawing.Bitmap gear {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap gnupg_keys {
|
internal static System.Drawing.Bitmap gnupg_keys {
|
||||||
get {
|
get {
|
||||||
|
|
@ -331,7 +271,7 @@ internal static System.Drawing.Bitmap gnupg_keys {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap information {
|
internal static System.Drawing.Bitmap information {
|
||||||
get {
|
get {
|
||||||
|
|
@ -341,7 +281,17 @@ internal static System.Drawing.Bitmap information {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Byte[].
|
||||||
|
/// </summary>
|
||||||
|
internal static byte[] Ionic_Zip {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Ionic_Zip", resourceCulture);
|
||||||
|
return ((byte[])(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap key {
|
internal static System.Drawing.Bitmap key {
|
||||||
get {
|
get {
|
||||||
|
|
@ -351,17 +301,17 @@ internal static System.Drawing.Bitmap key {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap key_plus {
|
internal static System.Drawing.Bitmap key__plus {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("key_plus", resourceCulture);
|
object obj = ResourceManager.GetObject("key__plus", resourceCulture);
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap key_solid {
|
internal static System.Drawing.Bitmap key_solid {
|
||||||
get {
|
get {
|
||||||
|
|
@ -371,17 +321,7 @@ internal static System.Drawing.Bitmap key_solid {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap lock_pencil {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("lock_pencil", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap lock_warning {
|
internal static System.Drawing.Bitmap lock_warning {
|
||||||
get {
|
get {
|
||||||
|
|
@ -391,7 +331,7 @@ internal static System.Drawing.Bitmap lock_warning {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap magnifier {
|
internal static System.Drawing.Bitmap magnifier {
|
||||||
get {
|
get {
|
||||||
|
|
@ -401,7 +341,7 @@ internal static System.Drawing.Bitmap magnifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap minus {
|
internal static System.Drawing.Bitmap minus {
|
||||||
get {
|
get {
|
||||||
|
|
@ -411,7 +351,7 @@ internal static System.Drawing.Bitmap minus {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap notepad_lock {
|
internal static System.Drawing.Bitmap notepad_lock {
|
||||||
get {
|
get {
|
||||||
|
|
@ -421,7 +361,7 @@ internal static System.Drawing.Bitmap notepad_lock {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap old_application_double {
|
internal static System.Drawing.Bitmap old_application_double {
|
||||||
get {
|
get {
|
||||||
|
|
@ -431,17 +371,7 @@ internal static System.Drawing.Bitmap old_application_double {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap old_clock_add {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("old_clock_add", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap old_cut_red {
|
internal static System.Drawing.Bitmap old_cut_red {
|
||||||
get {
|
get {
|
||||||
|
|
@ -451,7 +381,7 @@ internal static System.Drawing.Bitmap old_cut_red {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap old_diskette {
|
internal static System.Drawing.Bitmap old_diskette {
|
||||||
get {
|
get {
|
||||||
|
|
@ -461,7 +391,7 @@ internal static System.Drawing.Bitmap old_diskette {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap old_folder_stand {
|
internal static System.Drawing.Bitmap old_folder_stand {
|
||||||
get {
|
get {
|
||||||
|
|
@ -471,7 +401,7 @@ internal static System.Drawing.Bitmap old_folder_stand {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap old_folder_vertical_document {
|
internal static System.Drawing.Bitmap old_folder_vertical_document {
|
||||||
get {
|
get {
|
||||||
|
|
@ -481,7 +411,7 @@ internal static System.Drawing.Bitmap old_folder_vertical_document {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap old_lock {
|
internal static System.Drawing.Bitmap old_lock {
|
||||||
get {
|
get {
|
||||||
|
|
@ -491,17 +421,7 @@ internal static System.Drawing.Bitmap old_lock {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
|
||||||
internal static System.Drawing.Bitmap old_lock_edit {
|
|
||||||
get {
|
|
||||||
object obj = ResourceManager.GetObject("old_lock_edit", resourceCulture);
|
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap old_page_white_add {
|
internal static System.Drawing.Bitmap old_page_white_add {
|
||||||
get {
|
get {
|
||||||
|
|
@ -511,7 +431,7 @@ internal static System.Drawing.Bitmap old_page_white_add {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap old_page_white_copy {
|
internal static System.Drawing.Bitmap old_page_white_copy {
|
||||||
get {
|
get {
|
||||||
|
|
@ -521,7 +441,7 @@ internal static System.Drawing.Bitmap old_page_white_copy {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap old_page_white_delete {
|
internal static System.Drawing.Bitmap old_page_white_delete {
|
||||||
get {
|
get {
|
||||||
|
|
@ -531,7 +451,7 @@ internal static System.Drawing.Bitmap old_page_white_delete {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap old_page_white_key {
|
internal static System.Drawing.Bitmap old_page_white_key {
|
||||||
get {
|
get {
|
||||||
|
|
@ -541,7 +461,7 @@ internal static System.Drawing.Bitmap old_page_white_key {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap old_paste_plain {
|
internal static System.Drawing.Bitmap old_paste_plain {
|
||||||
get {
|
get {
|
||||||
|
|
@ -551,7 +471,7 @@ internal static System.Drawing.Bitmap old_paste_plain {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap old_setting_tools {
|
internal static System.Drawing.Bitmap old_setting_tools {
|
||||||
get {
|
get {
|
||||||
|
|
@ -561,7 +481,7 @@ internal static System.Drawing.Bitmap old_setting_tools {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap scissors {
|
internal static System.Drawing.Bitmap scissors {
|
||||||
get {
|
get {
|
||||||
|
|
@ -571,7 +491,7 @@ internal static System.Drawing.Bitmap scissors {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap selection_input {
|
internal static System.Drawing.Bitmap selection_input {
|
||||||
get {
|
get {
|
||||||
|
|
@ -581,7 +501,7 @@ internal static System.Drawing.Bitmap selection_input {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Поиск локализованного ресурса типа System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] Updater {
|
internal static byte[] Updater {
|
||||||
get {
|
get {
|
||||||
|
|
@ -591,7 +511,7 @@ internal static byte[] Updater {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap upload_cloud {
|
internal static System.Drawing.Bitmap upload_cloud {
|
||||||
get {
|
get {
|
||||||
|
|
@ -601,7 +521,7 @@ internal static System.Drawing.Bitmap upload_cloud {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Поиск локализованного ресурса типа System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static System.Drawing.Bitmap wrap_option {
|
internal static System.Drawing.Bitmap wrap_option {
|
||||||
get {
|
get {
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
263
Crypto Notepad/Properties/Settings.Designer.cs
generated
263
Crypto Notepad/Properties/Settings.Designer.cs
generated
|
|
@ -1,10 +1,10 @@
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// Этот код создан программой.
|
||||||
// Runtime Version:4.0.30319.42000
|
// Исполняемая версия:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||||
// the code is regenerated.
|
// повторной генерации кода.
|
||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -12,7 +12,7 @@ namespace Crypto_Notepad.Properties {
|
||||||
|
|
||||||
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.3.0.0")]
|
||||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||||
|
|
||||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
|
|
@ -27,12 +27,12 @@ public static Settings Default {
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("Black")]
|
[global::System.Configuration.DefaultSettingValueAttribute("Black")]
|
||||||
public global::System.Drawing.Color editorForeColor {
|
public global::System.Drawing.Color editroForeColor {
|
||||||
get {
|
get {
|
||||||
return ((global::System.Drawing.Color)(this["editorForeColor"]));
|
return ((global::System.Drawing.Color)(this["editroForeColor"]));
|
||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
this["editorForeColor"] = value;
|
this["editroForeColor"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -595,252 +595,5 @@ public bool encryptionHint {
|
||||||
this["encryptionHint"] = value;
|
this["encryptionHint"] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
|
||||||
public bool passwordGeneratorLowercase {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["passwordGeneratorLowercase"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["passwordGeneratorLowercase"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
|
||||||
public bool passwordGeneratorUppercase {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["passwordGeneratorUppercase"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["passwordGeneratorUppercase"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
|
||||||
public bool passwordGeneratorNumeric {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["passwordGeneratorNumeric"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["passwordGeneratorNumeric"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
|
||||||
public bool passwordGeneratorSpecial {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["passwordGeneratorSpecial"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["passwordGeneratorSpecial"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("40")]
|
|
||||||
public string passwordGeneratorLength {
|
|
||||||
get {
|
|
||||||
return ((string)(this["passwordGeneratorLength"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["passwordGeneratorLength"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("10")]
|
|
||||||
public string passwordGeneratorNumberOfStrings {
|
|
||||||
get {
|
|
||||||
return ((string)(this["passwordGeneratorNumberOfStrings"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["passwordGeneratorNumberOfStrings"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
|
||||||
public string TheSalt {
|
|
||||||
get {
|
|
||||||
return ((string)(this["TheSalt"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["TheSalt"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
|
||||||
public bool passwordGeneratorBrackets {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["passwordGeneratorBrackets"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["passwordGeneratorBrackets"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
|
||||||
public bool passwordGeneratorAdditional {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["passwordGeneratorAdditional"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["passwordGeneratorAdditional"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
|
||||||
public string lockTimeout {
|
|
||||||
get {
|
|
||||||
return ((string)(this["lockTimeout"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["lockTimeout"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
|
||||||
public bool statusPanelReadonly {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["statusPanelReadonly"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["statusPanelReadonly"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
|
||||||
public bool statusPanelWordWrap {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["statusPanelWordWrap"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["statusPanelWordWrap"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
|
||||||
public string clipboardClearTime {
|
|
||||||
get {
|
|
||||||
return ((string)(this["clipboardClearTime"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["clipboardClearTime"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
|
||||||
public bool statusPanelClipboard {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["statusPanelClipboard"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["statusPanelClipboard"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
|
||||||
public bool clearClipboardAtClose {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["clearClipboardAtClose"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["clearClipboardAtClose"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
|
||||||
public bool shortcutKeys {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["shortcutKeys"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["shortcutKeys"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
|
||||||
public bool openTxtUnencrypted {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["openTxtUnencrypted"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["openTxtUnencrypted"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
|
||||||
public bool trayMenu {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["trayMenu"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["trayMenu"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
||||||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
|
||||||
public bool statusPanelPasteboard {
|
|
||||||
get {
|
|
||||||
return ((bool)(this["statusPanelPasteboard"]));
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
this["statusPanelPasteboard"] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Crypto_Notepad.Properties" GeneratedClassName="Settings">
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Crypto_Notepad.Properties" GeneratedClassName="Settings">
|
||||||
<Profiles />
|
<Profiles />
|
||||||
<Settings>
|
<Settings>
|
||||||
<Setting Name="editorForeColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
|
<Setting Name="editroForeColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
|
||||||
<Value Profile="(Default)">Black</Value>
|
<Value Profile="(Default)">Black</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="editorBackColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
|
<Setting Name="editorBackColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
|
||||||
|
|
@ -134,62 +134,5 @@
|
||||||
<Setting Name="encryptionHint" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
<Setting Name="encryptionHint" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
||||||
<Value Profile="(Default)">True</Value>
|
<Value Profile="(Default)">True</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
<Setting Name="passwordGeneratorLowercase" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">True</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="passwordGeneratorUppercase" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">True</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="passwordGeneratorNumeric" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">True</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="passwordGeneratorSpecial" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">True</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="passwordGeneratorLength" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
|
|
||||||
<Value Profile="(Default)">40</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="passwordGeneratorNumberOfStrings" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
|
|
||||||
<Value Profile="(Default)">10</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="TheSalt" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
|
|
||||||
<Value Profile="(Default)" />
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="passwordGeneratorBrackets" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">False</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="passwordGeneratorAdditional" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">False</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="lockTimeout" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
|
|
||||||
<Value Profile="(Default)" />
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="statusPanelReadonly" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">True</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="statusPanelWordWrap" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">True</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="clipboardClearTime" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
|
|
||||||
<Value Profile="(Default)" />
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="statusPanelClipboard" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">True</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="clearClipboardAtClose" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">False</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="shortcutKeys" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">True</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="openTxtUnencrypted" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">False</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="trayMenu" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">False</Value>
|
|
||||||
</Setting>
|
|
||||||
<Setting Name="statusPanelPasteboard" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
|
|
||||||
<Value Profile="(Default)">False</Value>
|
|
||||||
</Setting>
|
|
||||||
</Settings>
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
||||||
BIN
Crypto Notepad/Resources/Ionic.Zip.dll
Normal file
BIN
Crypto Notepad/Resources/Ionic.Zip.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 626 B |
Binary file not shown.
|
Before Width: | Height: | Size: 341 B |
Binary file not shown.
|
Before Width: | Height: | Size: 591 B |
Binary file not shown.
|
Before Width: | Height: | Size: 754 B |
Binary file not shown.
|
Before Width: | Height: | Size: 960 B |
BIN
Crypto Notepad/Resources/key--plus.png
Normal file
BIN
Crypto Notepad/Resources/key--plus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 812 B |
File diff suppressed because it is too large
Load diff
|
|
@ -1,5 +1,8 @@
|
||||||
using System;
|
using IWshRuntimeLibrary;
|
||||||
|
using Microsoft.Win32;
|
||||||
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
@ -18,36 +21,26 @@ public SettingsForm()
|
||||||
#region Methods
|
#region Methods
|
||||||
private void LoadSettings()
|
private void LoadSettings()
|
||||||
{
|
{
|
||||||
editorFontColor.BackColor = settings.editorForeColor;
|
editorFontColor.BackColor = settings.editroForeColor;
|
||||||
editorBackColor.BackColor = settings.editorBackColor;
|
editorBackColor.BackColor = settings.editorBackColor;
|
||||||
editorInsertKeyComboBox.Text = settings.insertKey;
|
editorInsertKeyComboBox.Text = settings.insertKey;
|
||||||
if (settings.clipboardClearTime != "")
|
|
||||||
{
|
|
||||||
clearClipboardTextBox.Text = settings.clipboardClearTime.Remove(settings.clipboardClearTime.Length - 1);
|
|
||||||
}
|
|
||||||
editorPaddingLeftTextBox.Text = settings.editorPaddingLeft;
|
editorPaddingLeftTextBox.Text = settings.editorPaddingLeft;
|
||||||
editorOpenLinksWithComboBox.Text = settings.openLinks;
|
editorOpenLinksWithComboBox.Text = settings.openLinks;
|
||||||
editorBorderComboBox.Text = settings.editorBorder;
|
editorBorderComboBox.Text = settings.editorBorder;
|
||||||
fontDialog.Font = settings.editorFont;
|
fontDialog.Font = settings.editorFont;
|
||||||
editorFontLabel.Text = settings.editorFont.Name.ToString() + " " + settings.editorFont.Size.ToString();
|
|
||||||
lockTimeoutTextBox.Text = settings.lockTimeout;
|
|
||||||
autoLockOnMinimizeCheckBox.Checked = settings.autoLock;
|
autoLockOnMinimizeCheckBox.Checked = settings.autoLock;
|
||||||
autoCheckUpdatesCheckBox.Checked = settings.autoCheckUpdate;
|
autoCheckUpdatesCheckBox.Checked = settings.autoCheckUpdate;
|
||||||
mainMenuCheckBox.Checked = settings.mainMenuVisible;
|
mainMenuCheckBox.Checked = settings.mainMenuVisible;
|
||||||
menuIconsCheckBox.Checked = settings.menuIcons;
|
menuIconsCheckBox.Checked = settings.menuIcons;
|
||||||
shortcutKeysCheckBox.Checked = settings.shortcutKeys;
|
|
||||||
minimizeToTrayCheckBox.Checked = settings.minimizeToTray;
|
minimizeToTrayCheckBox.Checked = settings.minimizeToTray;
|
||||||
closeToTrayCheckBox.Checked = settings.closeToTray;
|
closeToTrayCheckBox.Checked = settings.closeToTray;
|
||||||
singleInstanceCheckBox.Checked = settings.singleInstance;
|
singleInstanceCheckBox.Checked = settings.singleInstance;
|
||||||
clearClipboardCheckBox.Checked = settings.clearClipboardAtClose;
|
|
||||||
trayMenuCheckBox.Checked = settings.trayMenu;
|
|
||||||
integrateCheckBox.Checked = settings.explorerIntegrate;
|
integrateCheckBox.Checked = settings.explorerIntegrate;
|
||||||
associateCheckBox.Checked = settings.explorerAssociate;
|
associateCheckBox.Checked = settings.explorerAssociate;
|
||||||
sendToCheckBox.Checked = settings.explorerSendTo;
|
sendToCheckBox.Checked = settings.explorerSendTo;
|
||||||
hashAlgorithmComboBox.Text = settings.HashAlgorithm;
|
hashAlgorithmComboBox.Text = settings.HashAlgorithm;
|
||||||
keySizeComboBox.Text = settings.KeySize;
|
keySizeComboBox.Text = settings.KeySize;
|
||||||
passwordIterationsTextBox.Text = settings.PasswordIterations;
|
passwordIterationsTextBox.Text = settings.PasswordIterations;
|
||||||
openTxtUnencryptedCheckBox.Checked = settings.openTxtUnencrypted;
|
|
||||||
searchBackColor.BackColor = settings.searchPanelBackColor;
|
searchBackColor.BackColor = settings.searchPanelBackColor;
|
||||||
searchFontColor.BackColor = settings.searchPanelForeColor;
|
searchFontColor.BackColor = settings.searchPanelForeColor;
|
||||||
searchBorderComboBox.Text = settings.searchPanelBorder;
|
searchBorderComboBox.Text = settings.searchPanelBorder;
|
||||||
|
|
@ -63,12 +56,90 @@ private void LoadSettings()
|
||||||
statusPanelLinesCheckBox.Checked = settings.statusPanelLines;
|
statusPanelLinesCheckBox.Checked = settings.statusPanelLines;
|
||||||
statusPanelModifiedCheckBox.Checked = settings.statusPanelModified;
|
statusPanelModifiedCheckBox.Checked = settings.statusPanelModified;
|
||||||
statusPanelSizeCheckBox.Checked = settings.statusPanelSize;
|
statusPanelSizeCheckBox.Checked = settings.statusPanelSize;
|
||||||
statusPanelReadonlyCheckBox.Checked = settings.statusPanelReadonly;
|
statusPanelLabelsGroupBox.Visible = settings.statusPanelVisible;
|
||||||
statusPanelWordwrapCheckBox.Checked = settings.statusPanelWordWrap;
|
|
||||||
statusPanelPasteboardCheckBox.Checked = settings.statusPanelPasteboard;
|
|
||||||
statusPanelClipboardCheckBox.Checked = settings.statusPanelClipboard;
|
|
||||||
encryptionHintLabel.Visible = settings.encryptionHint;
|
encryptionHintLabel.Visible = settings.encryptionHint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void AssociateExtension(string applicationExecutablePath, string extension)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\Classes", true);
|
||||||
|
key.CreateSubKey("." + extension).SetValue(string.Empty, extension + "_auto_file");
|
||||||
|
key = key.CreateSubKey(extension + "_auto_file");
|
||||||
|
key.CreateSubKey("DefaultIcon").SetValue(string.Empty, applicationExecutablePath + ",0");
|
||||||
|
key = key.CreateSubKey("Shell");
|
||||||
|
key.SetValue(string.Empty, "Open");
|
||||||
|
key = key.CreateSubKey("Open");
|
||||||
|
key.CreateSubKey("Command").SetValue(string.Empty, "\"" + applicationExecutablePath + "\" \"%1\" /o");
|
||||||
|
key.CreateSubKey("ddeexec\\Topic").SetValue(string.Empty, "System");
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void DissociateExtension(string applicationExecutablePath, string extension)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes", true);
|
||||||
|
RegistryKey subKeyTree = Registry.CurrentUser.OpenSubKey(@"Software\Classes\" + extension + "_auto_file", true);
|
||||||
|
if (subKeyTree != null)
|
||||||
|
{
|
||||||
|
key.DeleteSubKeyTree(extension + "_auto_file");
|
||||||
|
key.DeleteSubKeyTree("." + extension);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void MenuIntegrate(string action)
|
||||||
|
{
|
||||||
|
string appExePath = Assembly.GetEntryAssembly().Location;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (action == "enable")
|
||||||
|
{
|
||||||
|
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes\*\", true);
|
||||||
|
key = key.CreateSubKey("shell");
|
||||||
|
key.CreateSubKey("Crypto Notepad").SetValue("icon", appExePath);
|
||||||
|
key.CreateSubKey("Crypto Notepad").SetValue("SubCommands", "");
|
||||||
|
key.CreateSubKey(@"Crypto Notepad\shell");
|
||||||
|
key.CreateSubKey(@"Crypto Notepad\shell\cmd1\").SetValue("MUIVerb", "Encrypt");
|
||||||
|
key.CreateSubKey(@"Crypto Notepad\shell\cmd1\command").SetValue(string.Empty, "\"" + appExePath + "\" \"%1\" /er");
|
||||||
|
key.CreateSubKey(@"Crypto Notepad\shell\cmd2\").SetValue("MUIVerb", "Decrypt");
|
||||||
|
key.CreateSubKey(@"Crypto Notepad\shell\cmd2\command").SetValue(string.Empty, "\"" + appExePath + "\" \"%1\" /o");
|
||||||
|
|
||||||
|
}
|
||||||
|
if (action == "disable")
|
||||||
|
{
|
||||||
|
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes\*\shell\", true);
|
||||||
|
RegistryKey subKeyTree = Registry.CurrentUser.OpenSubKey(@"Software\Classes\*\shell\Crypto Notepad", true);
|
||||||
|
if (subKeyTree != null)
|
||||||
|
{
|
||||||
|
key.DeleteSubKeyTree("Crypto Notepad");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SendToShortcut()
|
||||||
|
{
|
||||||
|
string shortcutPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Microsoft\Windows\SendTo";
|
||||||
|
string shortcutName = PublicVar.appName + ".lnk";
|
||||||
|
string shortcutLocation = Path.Combine(shortcutPath, shortcutName);
|
||||||
|
string targetFileLocation = Assembly.GetEntryAssembly().Location;
|
||||||
|
WshShell shell = new WshShell();
|
||||||
|
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(shortcutLocation);
|
||||||
|
shortcut.Description = PublicVar.appName;
|
||||||
|
shortcut.IconLocation = targetFileLocation;
|
||||||
|
shortcut.TargetPath = targetFileLocation;
|
||||||
|
shortcut.Arguments = "/s";
|
||||||
|
shortcut.Save();
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -123,26 +194,10 @@ private void PasswordIterationsTextBox_KeyPress(object sender, KeyPressEventArgs
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LockTimeoutTextBox_KeyPress(object sender, KeyPressEventArgs e)
|
|
||||||
{
|
|
||||||
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar))
|
|
||||||
{
|
|
||||||
e.Handled = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region Settings Events
|
#region Settings Events
|
||||||
private void EncryptionHintLabel_MouseClick(object sender, MouseEventArgs e)
|
|
||||||
{
|
|
||||||
if (e.Button == MouseButtons.Left)
|
|
||||||
{
|
|
||||||
encryptionHintLabel.Visible = false;
|
|
||||||
settings.encryptionHint = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
private void EditorFontColor_Click(object sender, EventArgs e)
|
private void EditorFontColor_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
colorDialog.Color = editorFontColor.BackColor;
|
colorDialog.Color = editorFontColor.BackColor;
|
||||||
|
|
@ -153,7 +208,7 @@ private void EditorFontColor_Click(object sender, EventArgs e)
|
||||||
MainForm main = Owner as MainForm;
|
MainForm main = Owner as MainForm;
|
||||||
main.richTextBox.ForeColor = colorDialog.Color;
|
main.richTextBox.ForeColor = colorDialog.Color;
|
||||||
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
|
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
|
||||||
settings.editorForeColor = colorDialog.Color;
|
settings.editroForeColor = colorDialog.Color;
|
||||||
editorFontColor.BackColor = colorDialog.Color;
|
editorFontColor.BackColor = colorDialog.Color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -179,17 +234,26 @@ private void SettingsNavigation_Click(object sender, EventArgs e)
|
||||||
switch (settingsNavigation.SelectedIndex)
|
switch (settingsNavigation.SelectedIndex)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
settingsTabControl.SelectedTab = generalTabPage;
|
settingsTabControl.SelectedTab = applicationTabPage;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
settingsTabControl.SelectedTab = interfaceTabPage;
|
settingsTabControl.SelectedTab = toolbarTabPage;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
settingsTabControl.SelectedTab = editorTabPage;
|
settingsTabControl.SelectedTab = statusPanelTabPage;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
|
settingsTabControl.SelectedTab = searchPanelTabPage;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
settingsTabControl.SelectedTab = editorTabPage;
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
settingsTabControl.SelectedTab = encryptionTabPage;
|
settingsTabControl.SelectedTab = encryptionTabPage;
|
||||||
break;
|
break;
|
||||||
|
case 6:
|
||||||
|
settingsTabControl.SelectedTab = integrationTabPage;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -203,18 +267,18 @@ private void ToolbarVisibleCheckBox_Click(object sender, EventArgs e)
|
||||||
MainForm main = Owner as MainForm;
|
MainForm main = Owner as MainForm;
|
||||||
main.toolbarPanel.Visible = toolbarVisibleCheckBox.Checked;
|
main.toolbarPanel.Visible = toolbarVisibleCheckBox.Checked;
|
||||||
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
|
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
|
||||||
settings.toolbarVisible = toolbarVisibleCheckBox.Checked;
|
settings.toolbarVisible= toolbarVisibleCheckBox.Checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AssociateCheckBox_Click(object sender, EventArgs e)
|
private void AssociateCheckBox_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (associateCheckBox.Checked)
|
if (associateCheckBox.Checked)
|
||||||
{
|
{
|
||||||
Methods.AssociateExtension(Assembly.GetEntryAssembly().Location, "cnp");
|
AssociateExtension(Assembly.GetEntryAssembly().Location, "cnp");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Methods.DissociateExtension("cnp");
|
DissociateExtension(Assembly.GetEntryAssembly().Location, "cnp");
|
||||||
}
|
}
|
||||||
settings.explorerAssociate = associateCheckBox.Checked;
|
settings.explorerAssociate = associateCheckBox.Checked;
|
||||||
}
|
}
|
||||||
|
|
@ -223,11 +287,11 @@ private void IntegrateCheckBox_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (integrateCheckBox.Checked)
|
if (integrateCheckBox.Checked)
|
||||||
{
|
{
|
||||||
Methods.MenuIntegrate("enable");
|
MenuIntegrate("enable");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Methods.MenuIntegrate("disable");
|
MenuIntegrate("disable");
|
||||||
}
|
}
|
||||||
settings.explorerIntegrate = integrateCheckBox.Checked;
|
settings.explorerIntegrate = integrateCheckBox.Checked;
|
||||||
}
|
}
|
||||||
|
|
@ -246,25 +310,11 @@ private void EditorPaddingLeftTextBox_TextChanged(object sender, EventArgs e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LockTimeoutTextBox_TextChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (lockTimeoutTextBox.Text != settings.lockTimeout)
|
|
||||||
{
|
|
||||||
settings.lockTimeout = lockTimeoutTextBox.Text;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (string.IsNullOrEmpty(lockTimeoutTextBox.Text) | lockTimeoutTextBox.Text == "0")
|
|
||||||
{
|
|
||||||
MainForm main = Owner as MainForm;
|
|
||||||
main.lockTimer.Enabled = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SendToCheckBox_Click(object sender, EventArgs e)
|
private void SendToCheckBox_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (sendToCheckBox.Checked)
|
if (sendToCheckBox.Checked)
|
||||||
{
|
{
|
||||||
Methods.SendToShortcut();
|
SendToShortcut();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -301,7 +351,7 @@ private void MenuIconsCheckBox_Click(object sender, EventArgs e)
|
||||||
main.MenuIcons(settings.menuIcons);
|
main.MenuIcons(settings.menuIcons);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void EditorFontLabel_Click(object sender, EventArgs e)
|
private void EditorFontButton_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
using (new CenterWinDialog(this))
|
using (new CenterWinDialog(this))
|
||||||
{
|
{
|
||||||
|
|
@ -311,7 +361,6 @@ private void EditorFontLabel_Click(object sender, EventArgs e)
|
||||||
main.richTextBox.Font = fontDialog.Font;
|
main.richTextBox.Font = fontDialog.Font;
|
||||||
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
|
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
|
||||||
settings.editorFont = fontDialog.Font;
|
settings.editorFont = fontDialog.Font;
|
||||||
editorFontLabel.Text = settings.editorFont.Name.ToString() + " " + settings.editorFont.Size.ToString();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -342,9 +391,11 @@ private void FontDialog_Apply(object sender, EventArgs e)
|
||||||
|
|
||||||
private void StatusPanelVisibleCheckBox_Click(object sender, EventArgs e)
|
private void StatusPanelVisibleCheckBox_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
statusPanelLabelsGroupBox.Visible = statusPanelVisibleCheckBox.Checked;
|
||||||
Application.DoEvents();
|
Application.DoEvents();
|
||||||
MainForm main = Owner as MainForm;
|
MainForm main = Owner as MainForm;
|
||||||
main.statusPanel.Visible = statusPanelVisibleCheckBox.Checked;
|
main.statusPanel.Visible = statusPanelVisibleCheckBox.Checked;
|
||||||
|
//main.richTextBox.SetInnerMargins(Convert.ToInt32(editorPaddingLeftTextBox.Text), 0, 0, 0);
|
||||||
settings.statusPanelVisible = statusPanelVisibleCheckBox.Checked;
|
settings.statusPanelVisible = statusPanelVisibleCheckBox.Checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -491,11 +542,10 @@ private void PasswordIterationsTextBox_TextChanged(object sender, EventArgs e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void MinimizeToTrayCheckBox_Click(object sender, EventArgs e)
|
private void MinimizeToTrayCheckBox_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
MainForm main = Owner as MainForm;
|
MainForm main = Owner as MainForm;
|
||||||
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false & trayMenuCheckBox.Checked == false)
|
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false)
|
||||||
{
|
{
|
||||||
main.trayIcon.Visible = false;
|
main.trayIcon.Visible = false;
|
||||||
}
|
}
|
||||||
|
|
@ -509,7 +559,7 @@ private void MinimizeToTrayCheckBox_Click(object sender, EventArgs e)
|
||||||
private void CloseToTrayCheckBox_Click(object sender, EventArgs e)
|
private void CloseToTrayCheckBox_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
MainForm main = Owner as MainForm;
|
MainForm main = Owner as MainForm;
|
||||||
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false & trayMenuCheckBox.Checked == false)
|
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked ==false )
|
||||||
{
|
{
|
||||||
main.trayIcon.Visible = false;
|
main.trayIcon.Visible = false;
|
||||||
}
|
}
|
||||||
|
|
@ -580,78 +630,13 @@ private void StatusPanelSizeCheckBox_Click(object sender, EventArgs e)
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private void StatusPanelReadonlyCheckBox_Click(object sender, EventArgs e)
|
private void EncryptionHintLabel_MouseClick(object sender, MouseEventArgs e)
|
||||||
{
|
{
|
||||||
MainForm main = Owner as MainForm;
|
if (e.Button == MouseButtons.Left)
|
||||||
main.statusPanelReadonlyLabel.Visible = statusPanelReadonlyCheckBox.Checked;
|
|
||||||
settings.statusPanelReadonly = statusPanelReadonlyCheckBox.Checked;
|
|
||||||
main.StatusPanelFileInfo();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void StatusPanelWordwrapCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
MainForm main = Owner as MainForm;
|
|
||||||
main.statusPanelWordwrapLabel.Visible = statusPanelWordwrapCheckBox.Checked;
|
|
||||||
settings.statusPanelWordWrap = statusPanelWordwrapCheckBox.Checked;
|
|
||||||
main.StatusPanelFileInfo();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void StatusPanelPasteboardCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
MainForm main = Owner as MainForm;
|
|
||||||
main.statusPanelPasteboardLabel.Visible = statusPanelPasteboardCheckBox.Checked;
|
|
||||||
settings.statusPanelPasteboard = statusPanelPasteboardCheckBox.Checked;
|
|
||||||
main.StatusPanelFileInfo();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void StatusPanelClipboardCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
settings.statusPanelClipboard = statusPanelClipboardCheckBox.Checked;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void ClearClipboardTextBox_TextChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (clearClipboardTextBox.Text == "" || clearClipboardTextBox.Text == "0")
|
|
||||||
{
|
{
|
||||||
settings.clipboardClearTime = "";
|
encryptionHintLabel.Visible = false;
|
||||||
}
|
settings.encryptionHint = false;
|
||||||
else
|
|
||||||
{
|
|
||||||
settings.clipboardClearTime = clearClipboardTextBox.Text + 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ClearClipboardCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
settings.clearClipboardAtClose = clearClipboardCheckBox.Checked;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void TrayMenuCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
MainForm main = Owner as MainForm;
|
|
||||||
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false & trayMenuCheckBox.Checked == false)
|
|
||||||
{
|
|
||||||
main.trayIcon.Visible = false;
|
|
||||||
}
|
|
||||||
if (trayMenuCheckBox.Checked == true)
|
|
||||||
{
|
|
||||||
main.trayIcon.Visible = true;
|
|
||||||
}
|
|
||||||
settings.trayMenu = trayMenuCheckBox.Checked;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void ShortcutKeysCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
MainForm main = Owner as MainForm;
|
|
||||||
settings.shortcutKeys = shortcutKeysCheckBox.Checked;
|
|
||||||
main.ShortcutKeys(settings.shortcutKeys);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OpenTxtUnencryptedCheckBox_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
settings.openTxtUnencrypted = openTxtUnencryptedCheckBox.Checked;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -120,17 +120,17 @@
|
||||||
<metadata name="colorDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="colorDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="settingsToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>240, 17</value>
|
|
||||||
</metadata>
|
|
||||||
<data name="encryptionHintLabel.Text" xml:space="preserve">
|
<data name="encryptionHintLabel.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>
|
<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>
|
</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">
|
<metadata name="fontDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>131, 17</value>
|
<value>131, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>74</value>
|
<value>76</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
24
Crypto Notepad/WinFormsExtensions.cs
Normal file
24
Crypto Notepad/WinFormsExtensions.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
using System;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace Crypto_Notepad
|
||||||
|
{
|
||||||
|
public static class WinFormsExtensions
|
||||||
|
{
|
||||||
|
public static void AppendLine(this TextBox source, string value)
|
||||||
|
{
|
||||||
|
if (source.Text.Length == 0)
|
||||||
|
source.Text = value;
|
||||||
|
else
|
||||||
|
source.AppendText("\r\n" + value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void Times(this int count, Action action)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
action();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="Costura.Fody" version="4.1.0" targetFramework="net472" />
|
<package id="Costura.Fody" version="4.1.0" targetFramework="net472" />
|
||||||
<package id="Fody" version="6.0.6" targetFramework="net461" developmentDependency="true" />
|
<package id="Fody" version="6.0.4" targetFramework="net472" developmentDependency="true" />
|
||||||
<package id="PasswordGenerator" version="2.0.5" targetFramework="net461" />
|
<package id="PasswordGenerator" version="2.0.1" targetFramework="net472" />
|
||||||
</packages>
|
</packages>
|
||||||
Binary file not shown.
2
LICENSE
2
LICENSE
|
|
@ -1,6 +1,6 @@
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2022 Sigmanor
|
Copyright (c) 2019 Sigmanor
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
|
||||||
47
README.md
47
README.md
|
|
@ -1,16 +1,10 @@
|
||||||
[](https://stand-with-ukraine.pp.ua/)
|
# Crypto Notepad [](https://twitter.com/intent/tweet?text=Simple%20notepad%20for%20Windows%20with%20encryption%20features.%20Download%20for%20free:%20https://crypto-notepad.info/&hashtags=notepad,encryption,windows,opensource,csharp)
|
||||||
|
|
||||||
# Crypto Notepad [](https://twitter.com/intent/tweet?text=Simple%20notepad%20for%20Windows%20with%20encryption%20features.%20Download%20for%20free:%20https://crypto-notepad.github.io/&hashtags=notepad,encryption,windows,opensource,csharp)
|
|
||||||
|
|
||||||
> [!WARNING]
|
|
||||||
> - **THE PROJECT HAS VERY LIMITED SUPPORT**
|
|
||||||
> - **NO NEW FEATURES ARE PLANNED**
|
|
||||||
> - **ONLY CRITICAL BUG FIXES WILL BE ADDRESSED**
|
|
||||||
|
|
||||||
[](https://github.com/Crypto-Notepad/Crypto-Notepad/releases/latest)
|
[](https://github.com/Crypto-Notepad/Crypto-Notepad/releases/latest)
|
||||||
[](https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/LICENSE)
|
[](https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/LICENSE)
|
||||||
[](https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Release-Notes)
|
[](https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Release-Notes)
|
||||||
[](https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Documentation)
|
[](https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Documentation)
|
||||||
|
[](https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Project-status)
|
||||||
|
|
||||||
Notepad-like simple text editor for Windows, where files are saved and loaded encrypted with AES algorithms.
|
Notepad-like simple text editor for Windows, where files are saved and loaded encrypted with AES algorithms.
|
||||||
|
|
||||||
|
|
@ -18,36 +12,25 @@ Notepad-like simple text editor for Windows, where files are saved and loaded en
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* All the features of the default Windows Notepad
|
* Including all the features of the default Windows Notepad
|
||||||
* Associate own file type with application
|
|
||||||
* Integrate with windows context menu
|
* Integrate with windows context menu
|
||||||
* Сustomizable encryption options
|
|
||||||
* Built-in password generator
|
|
||||||
* Detecting links in editor
|
|
||||||
* Drag and Drop support
|
* Drag and Drop support
|
||||||
|
* Detecting links in editor
|
||||||
* Сustomizable interface
|
* Сustomizable interface
|
||||||
* Pasteboard function
|
* Сustomizable encryption options (hash algorithm, key size, password iterations)
|
||||||
* Autoclear clipboard
|
* Associate own file type with application
|
||||||
* Autolock editor
|
|
||||||
* Rich settings
|
|
||||||
* Portable
|
* Portable
|
||||||
|
|
||||||
## Installation
|
|
||||||
### Via chocolatey:
|
|
||||||
```
|
|
||||||
choco install crypto-notepad
|
|
||||||
```
|
|
||||||
### Manual instalition:
|
|
||||||
- [Download](https://github.com/Crypto-Notepad/Crypto-Notepad/releases/latest) latest release.
|
|
||||||
- Unzip **Crypto.Notepad.zip** archive to any directory
|
|
||||||
- Run **Crypto Notepad.exe**
|
|
||||||
|
|
||||||
## System requirements
|
## System requirements
|
||||||
* Windows 7 SP1 and higher
|
* Windows 7 SP1 and higher
|
||||||
* .NET Framework 4.6.1 and higher
|
* .NET Framework 4.7.2
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
Want to help make the project better? You can find a complete guide in [here](https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/CONTRIBUTING.md). Welcome! :octocat:
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
App was created in Visual Studio Community, you can run the *.sln file and simply build a project
|
App was created in Visual Studio Community, you can run the *.sln file and simply build a project
|
||||||
|
|
||||||
## Contributing
|
## Partners
|
||||||
Want to help make the project better? Check out [CONTRIBUTING.md](https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/CONTRIBUTING.md) to get involved. Welcome! :octocat:
|
 [FileHorse](http://filehorse.com/download-crypto-notepad/) | [Softpedia](http://softpedia.com/get/Office-tools/Text-editors/Crypto-Notepad.shtml) |  [Oldergeeks](https://www.oldergeeks.com/downloads/file.php?id=2665) |  [Portablefreeware](https://portablefreeware.com/index.php?id=2873) |  [Majorgeeks](http://www.majorgeeks.com/files/details/crypto_notepad.html) |  [Download.hr](https://www.download.hr/software-crypto-notepad.html)
|
||||||
|
--- | --- | --- | --- | --- | ---
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
1.7.3.0
|
1.6.3.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue