Skip to content

Commit

Permalink
add readme + some betters
Browse files Browse the repository at this point in the history
  • Loading branch information
harp077 committed Apr 2, 2021
1 parent 42aa7c8 commit 1b030b6
Show file tree
Hide file tree
Showing 14 changed files with 160 additions and 49 deletions.
31 changes: 0 additions & 31 deletions pkg_user_export_18.09.18.html

This file was deleted.

9 changes: 0 additions & 9 deletions pkg_user_export_18.09.18.xml

This file was deleted.

13 changes: 13 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Password Keeper + Generator.
Free portable cross-platform multi-user password manager, 100%-pure Java.
DB for each pkg-user is encrypted and protected by pkg-user hash.
In addition - all passwords in DB are stored in encrypted form.
In result - stored passwords are double encrypted !
Passwords of pkg-users are not stored in program - stored and compared only hashes.
Support md2, md5, sha1, sha256, sha384 and sha512 hash.
Support export DB to CSV, HTML, XLS, XML and import from CSV, XLS, XML.
Simple and intuitive GUI - Graphical User Interface.
PKG use crypto security random number generator.
Tested in Windows/Linux.
Need Jre-1.8:
https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html
13 changes: 13 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Password Keeper + Generator.
Free portable cross-platform multi-user password manager, 100%-pure Java.
DB for each pkg-user is encrypted and protected by pkg-user hash.
In addition - all passwords in DB are stored in encrypted form.
In result - stored passwords are double encrypted !
Passwords of pkg-users are not stored in program - stored and compared only hashes.
Support md2, md5, sha1, sha256, sha384 and sha512 hash.
Support export DB to CSV, HTML, XLS, XML and import from CSV, XLS, XML.
Simple and intuitive GUI - Graphical User Interface.
PKG use crypto security random number generator.
Tested in Windows/Linux.
Need Jre-1.8:
https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html
60 changes: 57 additions & 3 deletions src/main/java/PKG/PKGgui.form
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-99,0,0,2,-99"/>
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-99,0,0,3,3"/>
</AuxValues>

<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
Expand Down Expand Up @@ -612,7 +612,7 @@
<Component class="javax.swing.JButton" name="bRunGenerate">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/PKG/img/24x24/play1hot.png"/>
<Image iconType="3" name="/PKG/img/24x24/Button-Forward-24.png"/>
</Property>
<Property name="toolTipText" type="java.lang.String" value="Generate Password"/>
</Properties>
Expand All @@ -623,7 +623,7 @@
<Component class="javax.swing.JButton" name="bCopyGenerated">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/PKG/img/24x24/clipboard-blue.png"/>
<Image iconType="3" name="/PKG/img/24x24/clipboard-note-add-24.png"/>
</Property>
<Property name="toolTipText" type="java.lang.String" value="Copy generated to ClipBoard"/>
</Properties>
Expand All @@ -647,6 +647,8 @@
</Component>
</SubComponents>
</Container>
<Component class="javax.swing.JToolBar$Separator" name="jSeparator18">
</Component>
<Container class="javax.swing.JToolBar" name="jToolBar9">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
Expand Down Expand Up @@ -807,6 +809,8 @@
</Component>
</SubComponents>
</Container>
<Component class="javax.swing.JToolBar$Separator" name="jSeparator19">
</Component>
<Container class="javax.swing.JToolBar" name="jToolBar12">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
Expand Down Expand Up @@ -936,6 +940,20 @@

<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBoxLayout"/>
<SubComponents>
<Component class="javax.swing.JButton" name="btnGenerateSmall">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/PKG/img/16x16/go-green-krug-16.png"/>
</Property>
<Property name="toolTipText" type="java.lang.String" value="Generate"/>
<Property name="focusable" type="boolean" value="false"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnGenerateSmallActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JTextField" name="TFpassw">
<Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
Expand All @@ -950,6 +968,42 @@
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="9"/>
</AuxValues>
</Component>
<Component class="javax.swing.JButton" name="btnCopyGeneratedSmall">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/PKG/img/16x16/clipboard_plus.png"/>
</Property>
<Property name="toolTipText" type="java.lang.String" value="Copy generated to ClipBoard"/>
<Property name="focusable" type="boolean" value="false"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnCopyGeneratedSmallActionPerformed"/>
</Events>
<AuxValues>
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="9"/>
</AuxValues>
</Component>
<Component class="javax.swing.JButton" name="btnShowClipboardSmall">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/PKG/img/16x16/clipboard_lupa-16.png"/>
</Property>
<Property name="toolTipText" type="java.lang.String" value="Show ClipBoard"/>
<Property name="focusable" type="boolean" value="false"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="verticalTextPosition" type="int" value="3"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnShowClipboardSmallActionPerformed"/>
</Events>
<AuxValues>
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="9"/>
</AuxValues>
</Component>
<Component class="javax.swing.JToolBar$Separator" name="jSeparator20">
</Component>
<Component class="javax.swing.JCheckBox" name="checkSpecial">
<Properties>
<Property name="text" type="java.lang.String" value="Use Special symbols"/>
Expand Down
81 changes: 76 additions & 5 deletions src/main/java/PKG/PKGgui.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,22 @@ public class PKGgui extends javax.swing.JFrame {
"chars=13",
"chars=14",
"chars=15",
"chars=16"
"chars=16",
"chars=17",
"chars=18",
"chars=19",
"chars=20",
"chars=21",
"chars=22",
"chars=23",
"chars=24"
};
public static String [] typeAlphabetArray= {"aA-zZ_0-9","A-Z_0-9","a-z_0-9"};
public static String [] arrayExport = { "HTML","XML","CSV","XLS" };
public static String [] arrayImport = { "XML","CSV","XLS" };
public static String [] searchArray= {"title","login","description","url"};
public static String Zagolovok="Password Keeper+Generator, v1.0.6, build 19-01-21.";
private static Dimension frameDimension = new Dimension(702, 480);
public static String Zagolovok="Password Keeper+Generator, v1.0.7, build 02-04-21.";
private static Dimension frameDimension = new Dimension(800, 480);

public PKGgui() {
initComponents();
Expand Down Expand Up @@ -189,6 +197,7 @@ private void initComponents() {
bRunGenerate = new javax.swing.JButton();
bCopyGenerated = new javax.swing.JButton();
btnClearGenerate = new javax.swing.JButton();
jSeparator18 = new javax.swing.JToolBar.Separator();
jToolBar9 = new javax.swing.JToolBar();
bExport = new javax.swing.JButton();
bExportCombo = new javax.swing.JComboBox<>();
Expand All @@ -202,6 +211,7 @@ private void initComponents() {
bClearDB = new javax.swing.JButton();
bCpPasswToClip = new javax.swing.JButton();
bGoURL = new javax.swing.JButton();
jSeparator19 = new javax.swing.JToolBar.Separator();
jToolBar12 = new javax.swing.JToolBar();
bShowClipboard = new javax.swing.JButton();
bAddUser = new javax.swing.JButton();
Expand All @@ -211,7 +221,11 @@ private void initComponents() {
jSplitPane1 = new javax.swing.JSplitPane();
GeneratorToolBar = new javax.swing.JToolBar();
jToolBar4 = new javax.swing.JToolBar();
btnGenerateSmall = new javax.swing.JButton();
TFpassw = new javax.swing.JTextField();
btnCopyGeneratedSmall = new javax.swing.JButton();
btnShowClipboardSmall = new javax.swing.JButton();
jSeparator20 = new javax.swing.JToolBar.Separator();
checkSpecial = new javax.swing.JCheckBox();
jToolBar2 = new javax.swing.JToolBar();
jSeparator17 = new javax.swing.JToolBar.Separator();
Expand Down Expand Up @@ -463,7 +477,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
jToolBar7.setBorder(javax.swing.BorderFactory.createTitledBorder("Generator"));
jToolBar7.setFloatable(false);

bRunGenerate.setIcon(new javax.swing.ImageIcon(getClass().getResource("/PKG/img/24x24/play1hot.png"))); // NOI18N
bRunGenerate.setIcon(new javax.swing.ImageIcon(getClass().getResource("/PKG/img/24x24/Button-Forward-24.png"))); // NOI18N
bRunGenerate.setToolTipText("Generate Password");
bRunGenerate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Expand All @@ -472,7 +486,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
});
jToolBar7.add(bRunGenerate);

bCopyGenerated.setIcon(new javax.swing.ImageIcon(getClass().getResource("/PKG/img/24x24/clipboard-blue.png"))); // NOI18N
bCopyGenerated.setIcon(new javax.swing.ImageIcon(getClass().getResource("/PKG/img/24x24/clipboard-note-add-24.png"))); // NOI18N
bCopyGenerated.setToolTipText("Copy generated to ClipBoard");
bCopyGenerated.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Expand All @@ -494,6 +508,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
jToolBar7.add(btnClearGenerate);

jToolBar10.add(jToolBar7);
jToolBar10.add(jSeparator18);

jToolBar9.setBorder(javax.swing.BorderFactory.createTitledBorder("Keeper"));
jToolBar9.setFloatable(false);
Expand Down Expand Up @@ -599,6 +614,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
jToolBar9.add(bGoURL);

jToolBar10.add(jToolBar9);
jToolBar10.add(jSeparator19);

jToolBar12.setBorder(javax.swing.BorderFactory.createTitledBorder("System"));
jToolBar12.setFloatable(false);
Expand Down Expand Up @@ -677,11 +693,48 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
jToolBar4.setFloatable(false);
jToolBar4.setRollover(true);

btnGenerateSmall.setIcon(new javax.swing.ImageIcon(getClass().getResource("/PKG/img/16x16/go-green-krug-16.png"))); // NOI18N
btnGenerateSmall.setToolTipText("Generate");
btnGenerateSmall.setFocusable(false);
btnGenerateSmall.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
btnGenerateSmall.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
btnGenerateSmall.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnGenerateSmallActionPerformed(evt);
}
});
jToolBar4.add(btnGenerateSmall);

TFpassw.setFont(new java.awt.Font("Lucida Console", 1, 14)); // NOI18N
TFpassw.setHorizontalAlignment(javax.swing.JTextField.CENTER);
TFpassw.setComponentPopupMenu(mPopupGenerator);
jToolBar4.add(TFpassw);

btnCopyGeneratedSmall.setIcon(new javax.swing.ImageIcon(getClass().getResource("/PKG/img/16x16/clipboard_plus.png"))); // NOI18N
btnCopyGeneratedSmall.setToolTipText("Copy generated to ClipBoard");
btnCopyGeneratedSmall.setFocusable(false);
btnCopyGeneratedSmall.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
btnCopyGeneratedSmall.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
btnCopyGeneratedSmall.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnCopyGeneratedSmallActionPerformed(evt);
}
});
jToolBar4.add(btnCopyGeneratedSmall);

btnShowClipboardSmall.setIcon(new javax.swing.ImageIcon(getClass().getResource("/PKG/img/16x16/clipboard_lupa-16.png"))); // NOI18N
btnShowClipboardSmall.setToolTipText("Show ClipBoard");
btnShowClipboardSmall.setFocusable(false);
btnShowClipboardSmall.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
btnShowClipboardSmall.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
btnShowClipboardSmall.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnShowClipboardSmallActionPerformed(evt);
}
});
jToolBar4.add(btnShowClipboardSmall);
jToolBar4.add(jSeparator20);

checkSpecial.setText("Use Special symbols");
checkSpecial.setFocusable(false);
jToolBar4.add(checkSpecial);
Expand Down Expand Up @@ -1271,6 +1324,18 @@ private void btnClearGenerateActionPerformed(java.awt.event.ActionEvent evt) {//
TFpassw.setText("");
}//GEN-LAST:event_btnClearGenerateActionPerformed

private void btnCopyGeneratedSmallActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCopyGeneratedSmallActionPerformed
this.CopyCP();
}//GEN-LAST:event_btnCopyGeneratedSmallActionPerformed

private void btnGenerateSmallActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGenerateSmallActionPerformed
BLogic.generate(checkSpecial.isSelected(),bcomboAlphabet.getSelectedItem().toString(),Integer.parseInt(bcomboNumSymbols.getSelectedItem().toString().split("=")[1]), TFpassw);
}//GEN-LAST:event_btnGenerateSmallActionPerformed

private void btnShowClipboardSmallActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnShowClipboardSmallActionPerformed
actions.ShowClipboard(this);
}//GEN-LAST:event_btnShowClipboardSmallActionPerformed

public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
Expand Down Expand Up @@ -1326,7 +1391,10 @@ public void run() {
public static javax.swing.JComboBox bcomboNumSymbols;
private javax.swing.JButton btnAbout;
private javax.swing.JButton btnClearGenerate;
public static javax.swing.JButton btnCopyGeneratedSmall;
private javax.swing.JButton btnExit;
private javax.swing.JButton btnGenerateSmall;
public static javax.swing.JButton btnShowClipboardSmall;
public static javax.swing.JCheckBox checkSpecial;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
Expand All @@ -1347,7 +1415,10 @@ public void run() {
private javax.swing.JToolBar.Separator jSeparator15;
private javax.swing.JToolBar.Separator jSeparator16;
private javax.swing.JToolBar.Separator jSeparator17;
private javax.swing.JToolBar.Separator jSeparator18;
private javax.swing.JToolBar.Separator jSeparator19;
private javax.swing.JToolBar.Separator jSeparator2;
private javax.swing.JToolBar.Separator jSeparator20;
private javax.swing.JPopupMenu.Separator jSeparator3;
private javax.swing.JPopupMenu.Separator jSeparator4;
private javax.swing.JPopupMenu.Separator jSeparator5;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/PKG/img/16x16/Play-Green-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion users/user/user.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<user>
<password>ee11cbb19052e40b07aac0ca060c23ee</password>
<hash>md5</hash>
<change>19.01.21 01:33</change>
<change>02.04.21 11:36</change>
</user>
</pkg>

0 comments on commit 1b030b6

Please sign in to comment.