Added option to keep master pass in text field, off by default

This commit is contained in:
Ryan Ward 2022-11-08 11:44:22 -05:00
parent 45ccb6c6cb
commit d6ca5eae30
14 changed files with 68 additions and 9 deletions

View File

@ -52,6 +52,7 @@ namespace OnePass
this.load_login = new System.Windows.Forms.Button(); this.load_login = new System.Windows.Forms.Button();
this.label7 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label();
this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox1 = new System.Windows.Forms.CheckBox();
this.keep_chk = new System.Windows.Forms.CheckBox();
((System.ComponentModel.ISupportInitialize)(this.passCycle)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.passCycle)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.passLength)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.passLength)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
@ -307,11 +308,25 @@ namespace OnePass
this.checkBox1.UseVisualStyleBackColor = true; this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
// //
// keep_chk
//
this.keep_chk.AutoSize = true;
this.keep_chk.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold);
this.keep_chk.Location = new System.Drawing.Point(314, 79);
this.keep_chk.Name = "keep_chk";
this.keep_chk.Size = new System.Drawing.Size(55, 19);
this.keep_chk.TabIndex = 25;
this.keep_chk.Text = "Keep";
this.keep_chk.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.keep_chk.UseVisualStyleBackColor = true;
this.keep_chk.CheckedChanged += new System.EventHandler(this.keep_chk_CheckedChanged);
//
// Form1 // Form1
// //
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;
this.ClientSize = new System.Drawing.Size(426, 183); this.ClientSize = new System.Drawing.Size(426, 183);
this.Controls.Add(this.keep_chk);
this.Controls.Add(this.checkBox1); this.Controls.Add(this.checkBox1);
this.Controls.Add(this.label7); this.Controls.Add(this.label7);
this.Controls.Add(this.load_login); this.Controls.Add(this.load_login);
@ -338,7 +353,7 @@ namespace OnePass
this.MaximumSize = new System.Drawing.Size(442, 222); this.MaximumSize = new System.Drawing.Size(442, 222);
this.MinimumSize = new System.Drawing.Size(442, 222); this.MinimumSize = new System.Drawing.Size(442, 222);
this.Name = "Form1"; this.Name = "Form1";
this.Text = "OnePass V5.2"; this.Text = "OnePass V5.2.1";
this.Load += new System.EventHandler(this.Form1_Load); this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.passCycle)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.passCycle)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.passLength)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.passLength)).EndInit();
@ -371,6 +386,7 @@ namespace OnePass
private System.Windows.Forms.Button load_login; private System.Windows.Forms.Button load_login;
private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label7;
private System.Windows.Forms.CheckBox checkBox1; private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.CheckBox keep_chk;
} }
} }

View File

@ -233,7 +233,8 @@ namespace OnePass
{ {
System.Windows.MessageBox.Show("Attempt to capture clipboard data over the network! (Are you using remote desktop w/clipboard)"); System.Windows.MessageBox.Show("Attempt to capture clipboard data over the network! (Are you using remote desktop w/clipboard)");
} }
masterpass.Text = ""; if (!keep_chk.Checked)
masterpass.Text = "";
} }
private void extspc_Click(object sender, EventArgs e) private void extspc_Click(object sender, EventArgs e)
@ -324,5 +325,10 @@ namespace OnePass
{ {
} }
private void keep_chk_CheckedChanged(object sender, EventArgs e)
{
}
} }
} }

View File

@ -19,7 +19,7 @@ namespace OnePass.Properties {
// class via a tool like ResGen or Visual Studio. // class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.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 {
@ -59,5 +59,14 @@ namespace OnePass.Properties {
resourceCulture = value; resourceCulture = value;
} }
} }
/// <summary>
/// Looks up a localized string similar to 5.2.1.
/// </summary>
internal static string Version {
get {
return ResourceManager.GetString("Version", resourceCulture);
}
}
} }
} }

View File

@ -46,7 +46,7 @@
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
@ -60,6 +60,7 @@
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
--> -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType> <xsd:complexType>
<xsd:choice maxOccurs="unbounded"> <xsd:choice maxOccurs="unbounded">
@ -68,9 +69,10 @@
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" /> <xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="assembly"> <xsd:element name="assembly">
@ -85,9 +87,10 @@
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="resheader"> <xsd:element name="resheader">
@ -109,9 +112,12 @@
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.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>
<data name="Version" xml:space="preserve">
<value>5.2.1</value>
</data>
</root> </root>

Binary file not shown.

View File

@ -1 +1 @@
0215b1aacf7fd0af47be430b3d81a85de2f53264 588963e82696ec91ef7422751ab3c9923aeb5ce7

View File

@ -40,3 +40,25 @@ G:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.ShellEx
G:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.ShellExtensions.xml G:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.ShellExtensions.xml
G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.SuggestedBindingRedirects.cache G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.SuggestedBindingRedirects.cache
G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.CopyComplete G:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.CopyComplete
D:\VSCWorkspace\OnePass\OnePass\bin\Release\OnePass.exe.config
D:\VSCWorkspace\OnePass\OnePass\bin\Release\OnePass.exe
D:\VSCWorkspace\OnePass\OnePass\bin\Release\OnePass.pdb
D:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.dll
D:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.Shell.dll
D:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.ShellExtensions.dll
D:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.pdb
D:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.xml
D:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.Shell.pdb
D:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.Shell.xml
D:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.ShellExtensions.pdb
D:\VSCWorkspace\OnePass\OnePass\bin\Release\Microsoft.WindowsAPICodePack.ShellExtensions.xml
D:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.AssemblyReference.cache
D:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.SuggestedBindingRedirects.cache
D:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.Form1.resources
D:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.Form2.resources
D:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.Properties.Resources.resources
D:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.GenerateResource.cache
D:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.CoreCompileInputs.cache
D:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.csproj.CopyComplete
D:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.exe
D:\VSCWorkspace\OnePass\OnePass\obj\Release\OnePass.pdb

Binary file not shown.

Binary file not shown.