Secure E-Health Records on Cloud using Cryptography & Blockchain Smart Contracts
Abstract
Ensuring the security and integrity of electronic health records (EHR) in cloud environments is a critical concern in modern healthcare systems. This project proposes a secure framework that combines cryptography, blockchain, and InterPlanetary File System (IPFS) technologies to protect EHRs stored in the cloud. Files are encrypted using the Attribute-Based Encryption (ABE) algorithm and stored on the decentralized IPFS server, which returns a unique hashcode representing the file’s location. This hashcode, along with file owner details, is then stored on the Ethereum blockchain using smart contracts, enabling transparent and tamper-proof file tracking. A Django-based web server manages file uploads, user interactions, and keyword-based searches. It also creates a hashed keyword index using SHA algorithms, allowing efficient and privacy-preserving keyword search via TF-IDF vector matching. Smart contracts are deployed and accessed using Python to store and retrieve user and file details from the blockchain. The proposed system ensures end-to-end data confidentiality, integrity verification through file auditing, and secure, decentralized access to health records
