Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

AlfonsoG-dev/gestorPassword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

154 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gestor Password

  • simple GUI App for password management.
  • created using MYSQL, JAVA SWING and AWT.

Dependencies

References

Features

  • login
  • list, add, delete and update passwords.
  • allow insert cuenta directly from table.
  • allow to commit changes o rollback if wanted.
  • the password field is generated automatically.
  • allow to import the accounts from a .txt file
  • allow to export accounts to a output.txt file

Not implemented

  • add the option to encrypt the password and other sensible data especially with AES 256-bit or PBKDF2 encryption. -> AES algorithm for java, in java currently i cannot implement the encryption and decryption correctly.

Usage

  • use the user and password.
  • to use drag and drop to the table.
  • the drag text format must be:
id,nombre,email,user_id_fk,password,null,null

panelLogin


  • panel that contains the table and functionality
  • the table have to the right side 3 button that represents:
  • reload, insert row, delete row

panelPrincipal


  • if no new row has been inserted or the inserted row have no data, insert button redirect to another frame
  • if you insert a row you must press enter when finish the register of the data

panelRegistro

  • a column must be selected before click update button

panelUpdate


Aditional options to use

  • Create the database and tables.
  • using the java-mysql-orm
  • first you need to digit the DbConfig parameters
private final static DbConfig InitDB(String db_name) {
    String emptyValue = "this always need to be empty"
    DbConfig mConfig = new DbConfig(emptyValue, "host", "port", "db_user", "db_user_password");
}
  • second you need to change the name of the database to create
private final static void LogginUser() {
    try {
        DbConfig miConfig = InitDB("name of the database");
    } catch(Exception e) {
        System.err.println(e);
    }
}
  • at launch you register the user for the accounts

Compile and execute

  • if the javaBuild.exe is in path
  • to compile
javaBuild --build
  • to execute
java -jar app.jar
  • if using the powershell script
  • Extraction of the jar file dependencies
  1. download the java-mysql-eje project inside the lib folder of the project
  2. inside java-musql-eje project create a jar file
  3. create a folder with the name of extractionFiles
  4. in the extractionFiles folder create a folder with the name java_mysql_eje
  5. move the jar file to extractionFiles/java_mysql_eje/ folder
  6. extract the content of the jar file using the java -xf command
  • Compile the project
  1. using powershell create a java-exe.ps1 file in the root of the project
  2. create the script to compile and execute the program
$Clases = "./src/*.java ./src/Interface/Panels/*.java"
$Compilation = "javac -cp " + '"./bin/;path to the custom jar file" -d ./bin/ ' + "$Clases";
$javaCommand = "java -cp " + '"./bin;path to a custom jar file" .\src\App.java';
$runCommand = "$Compilation" + " & " + "$javaCommand"
Invoke-Expression $runCommand

Disclaimer

  • this project is for educational purposes
  • security issues are not taken into account

About

simple GUI for password management

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published