- simple GUI App for password management.
- created using MYSQL, JAVA SWING and AWT.
- 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
- 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.
- 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- panel that contains the table and functionality
- the table have to the right side 3 button that represents:
- reload, insert row, delete row
- 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
- a column must be selected before click update button
- 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
- using java-build-tool
- 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
- download the java-mysql-eje project inside the lib folder of the project
- inside java-musql-eje project create a jar file
- create a folder with the name of extractionFiles
- in the extractionFiles folder create a folder with the name java_mysql_eje
- move the jar file to extractionFiles/java_mysql_eje/ folder
- extract the content of the jar file using the java -xf command
- Compile the project
- using powershell create a java-exe.ps1 file in the root of the project
- 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
- this project is for educational purposes
- security issues are not taken into account



