How kumarjitdron/secure-file-storage-in-cloud-using-aes-encryption-and-blockchain-key-management-malware-detection works
Secure File Handling System is a Flask application for authenticated file upload, malware screening, encryption, cloud storage, sharing, and controlled download/decryption. Its main workflow is coordinated by app.py: an upload is scanned, encrypted, stored in Cloudinary, and associated with an on-chain key and local file metadata; download checks access and the supplied key before retrieving and decrypting the file. The graph also preserves registration and sharing, plus the separate AES helper and smart-contract capability. Source excerpts show only part of the routes, so unsampled route details are represented only where README documentation supports them.
Main entry points: app.py Flask routes · model.py Malware prediction · blockchain.py Blockchain key client · templates Web pages
Components 14
Web application
- Flask routes
app.py - Web pages
templates
File security
- Malware prediction
model.py - PE feature extraction
feature_extraction.py - AES helper
aes.py - File encryption
app.py
File and key storage
- Cloudinary files
- Local file and user data
app.py - Blockchain key client
blockchain.py - Key storage contract
contracts/KeyStorage.sol
Identity and sharing
- Accounts and sessions
app.py - File sharing
app.py
Other components
- User
- Ethereum network
Connections 13
- User → Flask routes: uses routes
app.py - Flask routes → Web pages: renders pages
app.py - Flask routes → Accounts and sessions: handles login
app.py - Flask routes → Malware prediction: scans upload
app.py - Malware prediction → PE feature extraction: extracts features
model.py - Flask routes → File encryption: encrypts and decrypts
app.py - Flask routes → Cloudinary files: uploads and fetches
app.py - Flask routes → Blockchain key client: stores and retrieves keys
app.py - Blockchain key client → Ethereum network: calls contract
blockchain.py - Ethereum network → Key storage contract: executes key operations
README.md - Flask routes → Local file and user data: reads and writes records
app.py - Flask routes → File sharing: manages shares
app.py - File sharing → Local file and user data: stores share records
app.py