SecureVault AI is a privacy-first cybersecurity web application for encrypting text files, decrypting authenticated SecureVault packages, generating SHA-256 file fingerprints, and receiving explainable security guidance. Every cryptographic operation runs locally in the browser—files and passwords are never uploaded.
Built as a Cyber Security Capstone Project suitable for a Lenovo LEAP internship submission.
- AES-256-GCM authenticated file encryption using the Web Crypto API
- PBKDF2-SHA-256 key derivation with 250,000 iterations and a random salt
- Secure decryption with wrong-password and tamper detection
- Animated password-strength meter with actionable suggestions
- SHA-256 hash generator for any file type
- File metadata display: name, size, type, and last modified date
- Live security score based on password strength, file size, and encryption status
- Explainable, local AI-style security advisor (no remote model or data transfer)
- Device-local activity history using
localStorage - Responsive glassmorphism interface, dark theme, animation, and accessible labels
- Frontend-only contact form with client-side validation
- HTML5 and CSS3
- Vanilla JavaScript (ES2020+)
- Bootstrap 5
- Font Awesome
- Browser Web Crypto API
localStoragefor the local activity log
CryptoJS is intentionally not used: modern browser-native Web Crypto provides authenticated AES-GCM, cryptographically secure randomness, and SHA-256 without an extra cryptography dependency.
-
Clone or download this repository.
-
Open the project directory:
cd SecureVault-AI -
Serve the directory from a local web server:
python -m http.server 8080
-
Open
http://localhost:8080in a current version of Chrome, Edge, Firefox, or Safari.
No build step, package installation, backend, database, or API key is required. An internet connection is needed for the Bootstrap, Font Awesome, and Google Fonts CDN assets. For deployment, GitHub Pages works without configuration.
- On Encrypt, select a plain-text file and enter a strong password.
- Download the generated
.svaultpackage and store the password separately. - On Decrypt, select that package and enter the same password.
- On Hash, choose any file to generate and copy its SHA-256 digest.
Passwords cannot be recovered. This educational project should be independently reviewed before protecting high-value production data.
Each encryption creates a random 128-bit salt and 96-bit IV. PBKDF2 derives a 256-bit key from the password, then AES-GCM encrypts and authenticates the file. The .svault JSON container stores the ciphertext, non-secret derivation parameters, and original metadata. GCM authentication causes decryption to fail when either the password is wrong or the ciphertext was modified.
The activity log stores only action labels, filenames, and timestamps on the current device. It never stores passwords, keys, plaintext, ciphertext, or hashes.
Screenshots can be stored in the screenshots/ directory:
home-desktop.pngencrypt-desktop.pngmobile.png
SecureVault-AI/
├── index.html
├── encrypt.html
├── decrypt.html
├── hash.html
├── about.html
├── contact.html
├── css/style.css
├── js/
│ ├── app.js
│ ├── encrypt.js
│ ├── decrypt.js
│ ├── hash.js
│ └── password.js
├── assets/
│ ├── images/
│ └── icons/
├── screenshots/
├── README.md
├── LICENSE
└── .gitignore
- Streaming encryption for files larger than available browser memory
- Optional passkey and hardware-backed key support
- Password-protected metadata and authenticated additional data
- Installable Progressive Web App with vendored offline assets
- Batch encryption and directory workflows
- Signed hash manifests for chain-of-custody use cases
- Independent security audit and cross-browser test automation