The problem
Personal documents — ID scans, certificates, tax files — sit unprotected on most laptops, readable by anyone who gets past the login screen. Cloud lockers solve access but move the trust problem to a third party. A local encrypted vault keeps the data on the owner's machine under a key only they hold, and building one is a genuinely instructive security project: it forces correct use of authenticated encryption, password-based key derivation, secure memory handling and audit logging. This project is a complete JavaFX desktop application that does all of it: AES-256-GCM per-file encryption with unique nonces, PBKDF2-HMAC-SHA256 key derivation at 200,000 iterations, 3-pass secure file shredding, idle auto-lock with RAM-only temp files, and an append-only audit log whose entries are HMAC-chained so tampering is detectable. The demo walks through the unlock screen, vault file management, the crypto-settings view and the audit log — every screen the JavaFX app ships.
Enters the master password and adds, opens or shreds files in the vault.
Follow the working sequence
How it works
- At vault creation, a 128-bit random salt is generated and the master password is run through PBKDF2-HMAC-SHA256 (200,000 iterations) to derive the AES-256 key — kept in memory only.
- Each added file is split into 4 MB chunks, encrypted with AES-256-GCM under a fresh random 96-bit nonce, and written with a 256-byte header (magic, salt, chunk table, GCM tag).
- Decrypted copies are written only to a RAM-backed temp directory and wiped with a 3-pass overwrite when re-encrypted or when the vault locks.
- Shredding overwrites the ciphertext file three times with the DoD 5220.22-M pattern before unlinking it.
- Every security-relevant action appends an audit entry HMAC-chained to the previous one; the chain is verified at each unlock.
- After 5 minutes of inactivity the session key is zeroed from memory and the vault re-locks, requiring the master password again.
Tech stack:
- Java 17, JavaFX 21 (controls, FXML views)
- AES-256-GCM, PBKDF2-HMAC-SHA256 via the Java Cryptography Architecture
- SQLite (vault metadata index) — file bytes never in the DB
- Single-file HTML/CSS/JS demo walkthrough mirroring the JavaFX screens
- JUnit tests for the crypto layer (round-trip, wrong-password, tamper cases)
| Parameter | Value |
|---|---|
| Cipher | AES-256-GCM, 96-bit random nonce per file |
| Key derivation | PBKDF2-HMAC-SHA256, 200,000 iterations, 128-bit salt |
| Shredding | 3-pass overwrite (DoD 5220.22-M pattern) |
| Chunking | 4 MB streaming chunks, flat memory profile |
| Audit log | Append-only, HMAC-chained, verified at unlock |
| Auto-lock | 5 minutes idle; session key zeroed from memory |
| Platform | Windows / macOS / Linux with JRE 17+ |
| Unlock cost | ~0.8 s PBKDF2 on a laptop CPU (design target, measured on your machine) |
Project features
- [AES-256-GCM file encryption] Authenticated encryption with a fresh random 96-bit nonce per file; identical plaintexts produce different ciphertexts.
- [PBKDF2 key derivation] PBKDF2-HMAC-SHA256 at 200,000 iterations with a 128-bit random salt; the master password is never stored or logged.
- [Unlock & session management] Password-strength meter at vault creation, session auto-lock after 5 minutes idle, RAM-backed temp directory wiped on lock.
- [Secure file shredding] 3-pass overwrite (DoD 5220.22-M pattern) before unlink, so deleted files are not recoverable from disk.
- [Tamper-evident audit log] Every unlock, encrypt, decrypt and shred is appended with an HMAC over the previous entry's hash — editing history breaks the chain.
- [Chunked streaming] 4 MB streaming chunks keep memory flat for multi-hundred-MB files; progress is reported per file.
- [Wrong-password safety] GCM tag verification fails closed — a wrong password refuses to decrypt rather than producing garbage output.
- [Cross-platform desktop UI] JavaFX interface with vault, crypto-settings and audit views; runs on Windows, macOS and Linux with a JRE.
What is included
- Complete JavaFX source code (vault model, crypto layer, FXML views, audit log)
- JUnit test suite for encryption round-trip, wrong-password refusal and audit-chain tamper detection
- Project report PDF (threat model, AES-GCM design, PBKDF2 parameters, header layout, test results)
- PPT presentation for final review
- Viva Q&A preparation document (symmetric crypto, authenticated encryption, KDFs, secure deletion, audit logging)
- Setup guide (JDK/JavaFX setup, building the JAR, running the demo)
Limitations & prerequisites
- The vault protects data at rest on the owner's machine — it does not defend against a compromised OS, keyloggers, or someone watching the password being typed.
- Forgetting the master password means the data is unrecoverable by design; there is no backdoor and no recovery flow.
- Shredding is effective on HDDs; on SSDs, wear-leveling can leave remnant blocks the OS cannot overwrite — the report states this honestly.
- PBKDF2 at 200,000 iterations costs ~0.8 s per unlock — deliberate (it slows attackers too), but it is not instant.
- The audit log detects tampering but cannot prevent it; a sophisticated attacker with write access could delete the log entirely.
Frequently Asked Questions
Which encryption is used?
AES-256 in GCM mode (authenticated encryption) with a fresh random 96-bit nonce per file. The master key is derived from the password with PBKDF2-HMAC-SHA256 at 200,000 iterations.
Where is the password stored?
Nowhere. It exists only in memory during the session; only the derived key (also memory-only) and the random salt are used. Forgetting it means the vault cannot be opened.
Is deleted data really gone?
The shredder overwrites file bytes 3 times before unlinking. On SSDs, wear-leveling may preserve remnant blocks — stated as an explicit limitation in the report.
Can the audit log be faked?
Entries are HMAC-chained, so editing any historical line breaks the chain and is flagged at the next unlock. Deleting the log file itself is detectable because the vault header records the last chain hash.
What are the main limitations?
No protection against keyloggers or compromised OS; no password recovery by design; SSD shredding caveat; ~0.8 s unlock cost.
Is this project suitable for a final-year project?
Yes — for Computer Science and IT programs. It demonstrates applied cryptography, secure software design, desktop UI development and threat modeling, all strong viva material. Suitable for B.E./B.Tech final-year projects in Computer Science and Information Technology.
Components & software requirements
- Java 17, JavaFX 21 (controls, FXML views)
- AES-256-GCM, PBKDF2-HMAC-SHA256 via the Java Cryptography Architecture
- SQLite (vault metadata index) — file bytes never in the DB
- Single-file HTML/CSS/JS demo walkthrough mirroring the JavaFX screens
- JUnit tests for the crypto layer (round-trip, wrong-password, tamper cases)
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.