SafeSync is a secure file management system built with Java Swing, Hibernate, and PostgreSQL. It allows users to encrypt and store their files securely in categorized folders. This application supports user authentication, file encryption, and organized storage.
- User Authentication: Sign up and log in securely.
- File Management:
- View all uploaded files.
- Add new files with encryption.
- Organize files into folders.
- Encryption: Automatically encrypts files before saving them to the database.
- Database Integration: Uses PostgreSQL to store user and file data.
- Frontend: Java Swing for GUI.
- Backend: Hibernate ORM for database operations.
- Database: PostgreSQL.
- Build Tool: Maven.
-
Users Table:
id
(Primary Key)username
(Unique)password
(Hashed)
-
Files Table:
id
(Primary Key)file_name
file_path
encryption_key
folder_name
user_id
(Foreign Key referencing Users table)
- Java JDK 11 or higher
- Maven
- PostgreSQL database
- Clone the Repository:
git clone https://github.com/udaypawar004/SafeSync.git cd SafeSync
- Configure the Database:
Create a PostgreSQL database named safesync. Update the hibernate.cfg.xml file in the resources folder with your database credentials: xml
<property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/safesync</property>
<property name="hibernate.connection.username">your-username</property>
<property name="hibernate.connection.password">your-password</property>
- Build the Project:
bash
mvn clean install
- Run the Application:
bash
java -jar target/SafeSync-1.0-SNAPSHOT.jar
Enjoy using SafeSync! Secure your files with ease.