How abhilash1401/securefile works
SecureFile is a Java file-security tool with a terminal menu and Swing file selection. Its main workflows select and validate a file, then encrypt or decrypt it in chunks, generate a SHA-256 hash, or compare a supplied hash for integrity verification. Encryption and decryption use PBKDF2-derived keys and AES-GCM; operations are recorded in an audit log. The README documents these capabilities, while the sampled source confirms the menu dispatch and core calls. File I/O is local; no external service is shown.
Main entry points: Main.java Menu controller · FileProcessor.java Chunk processor · FileSelector.java File chooser · HashUtils.java SHA-256 hashing
Components 12
User workflows
- Menu controller
Main.java - Welcome header
Header.java - File chooser
FileSelector.java - File validation
FileValidator.java
Encryption security
- Chunk processor
FileProcessor.java - Key derivation
KeyGenerator.java - AES-GCM engine
CryptoEngine.java
Integrity and audit
- SHA-256 hashing
HashUtils.java - Audit logging
AuditLogger.java
Other components
- User
- Local files
- Audit log file
Connections 13
- User → Menu controller: chooses operation
README.md - Menu controller → Welcome header: prints header
Main.java - Menu controller → File chooser: selects file
Main.java - Menu controller → File validation: validates file
Main.java - Menu controller → Chunk processor: encrypts or decrypts
Main.java - Menu controller → SHA-256 hashing: calculates hash
Main.java - Menu controller → Audit logging: records operation
Main.java - File chooser → Local files: selects from
FileSelector.java - Chunk processor → Key derivation: derives key
FileProcessor.java - Chunk processor → AES-GCM engine: creates cipher
FileProcessor.java - Chunk processor → Local files: reads and writes
FileProcessor.java - SHA-256 hashing → Local files: reads file
HashUtils.java - Audit logging → Audit log file: appends entries
AuditLogger.java