A sophisticated multi-tier security application that protects your files with time-based authentication, system biometrics, and physical key verification. Think of it as a digital fortress for your most sensitive files.
| Vault Level | Authentication Method | Use Case |
|---|---|---|
| ๐ก๏ธ Vault 1 | Time-based passwords | Daily sensitive documents |
| ๐ก๏ธ๐ก๏ธ Vault 2 | Time + System factors (CPU, RAM, Battery) | Financial records, important work files |
| ๐ก๏ธ๐ก๏ธ๐ก๏ธ Vault 3 | Time + Physical keys (USB/Bluetooth) | Legal documents, personal secrets, crypto keys |
- Military-grade AES-128 encryption using Fernet
- Each file encrypted with unique keys
- Secure key storage in encrypted database
# Example: HDMY format = HourDayMonthYear
# 2:30 PM on Dec 25, 2024 โ "14302512"
Password = Hour(14) + Day(25) + Month(12) + Year(2024)- Battery percentage monitoring
- CPU usage patterns
- RAM size verification
- Real-time system state analysis
- USB Drive Tokens - Encrypted key files on removable drives
- Bluetooth Device Pairing - Phone/watch presence detection
- Multi-factor authentication - Something you have + something you know
- File & Folder encryption
- Application locking (Windows EXE files)
- Secure transfer between vaults
- One-click restoration with conflict resolution
# 1. Clone the repository
git clone https://github.com/yourusername/secure-file-locker.git
cd secure-file-locker
# 2. Install dependencies
pip install -r requirements.txt
# 3. Launch the application
python ui.py- Configure Vault 1 - Choose your time format (HDMY, MDHY, etc.)
- Setup Vault 2 - Add system factors and timezone
- Activate Vault 3 - Connect USB drive or Bluetooth device
- Start securing files - Drag and drop files into your vaults
- Password databases - Keep your KeePass files in Vault 3
- Tax documents - Store in Vault 2 with system verification
- Personal photos - Quick access with Vault 1 time codes
- Client contracts - Vault 3 with USB key requirement
- Financial reports - Vault 2 with additional security factors
- Employee documents - Vault 1 for daily access
- SSH keys - Maximum protection in Vault 3
- API credentials - Vault 2 with system validation
- Configuration files - Vault 1 for regular access
User File โ Encryption (AES-128) โ Secure Storage
โณ Unique Key Generation
โณ Hash Verification
โณ Audit Logging
Vault 1: Current Time โ Format Pattern โ Password
Vault 2: Time + System Factors โ Combined Password
Vault 3: Time + Physical Key Presence โ Access Granted
- Python 3.8+ - Core programming language
- Tkinter - Cross-platform GUI framework
- Cryptography - Fernet encryption implementation
- SQLite3 - Secure local database
- psutil - System monitoring capabilities
- โ End-to-end encryption
- โ Automatic key rotation
- โ Tamper detection
- โ Comprehensive audit logging
- โ Secure memory handling
- โ Input validation & sanitization
- Windows 10/11 - Full feature support
- macOS - Bluetooth and USB support
- Linux - Basic functionality (limited Bluetooth)
secure-file-locker/
โโโ backend.py # Core security logic & encryption
โโโ ui.py # User interface & interactions
โโโ requirements.txt # Python dependencies
โโโ README.md # This file
โโโ .gitignore # Git exclusion rules
# Lock a file to Vault 1
backend.lock_file("secret_document.pdf", vault_level=1)
# Unlock when needed
backend.unlock_file(item_id)# Vault 2 with battery + CPU factors
config = {
'format': 'HDMY',
'timezone': 'America/New_York',
'additional_factors': ['battery', 'cpu']
}
backend.save_vault_config(2, config)# Move files between security levels
backend.transfer_items_between_vaults([item_ids], target_vault=3)# Create USB key
backend.create_usb_key_on_drive("E:\\")
# Verify Bluetooth device
backend.verify_bluetooth_key(vault_level=3)- Encryption Speed: ~100MB/s (SSD)
- Memory Usage: <50MB typical
- Database: Lightweight SQLite (<1MB for 1000 files)
- Startup Time: <3 seconds
We love contributions! See our Contributing Guide for details.
git clone https://github.com/yourusername/secure-file-locker.git
cd secure-file-locker
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt- Mobile app companion
- Cloud storage integration
- Advanced biometric support
- Plugin system for custom factors
Important: This is a robust security application, but no software is 100% secure. Use for personal and business files at your own risk. Always maintain backups and follow security best practices.
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: Check this README
- Issues: Open a GitHub issue
- Audit Logs: Check
security_audit.logfor detailed logs - Debug Mode: Enable detailed logging in backend.py
โญ Star this repository if you find it useful!
"Your files deserve more than just a password"
- Web interface for remote management
- Mobile app for physical key functionality
- Cloud synchronization (encrypted)
- Advanced biometric integration
- Plugin marketplace for custom security factors
Ready to secure your digital life? Clone this repository and start protecting your files today! ๐