Skip to content

πŸ” KeyCrypt Shield – Secure file encryption using ECIES + AES-GCM with automated key rotation and secure shredding. Built for finance, healthcare, and IoT data protection.

License

Notifications You must be signed in to change notification settings

Brahamanbtp/KeyCrypt-Shield

Repository files navigation

πŸ” KeyCrypt Shield

Robust Encryption, Key Rotation, and Secure File Shredding Framework

KeyCrypt Shield is a comprehensive file-level encryption system that combines Elliptic Curve Integrated Encryption Scheme (ECIES), AES-GCM symmetric encryption, automated key rotation, and secure file shredding. This system is built to provide scalable, high-performance, and forward-secure data protection.

πŸš€ Features

  • πŸ”‘ ECIES for secure asymmetric key exchange
  • πŸ›‘οΈ AES-GCM for authenticated encryption with confidentiality & integrity
  • πŸ” Automated Key Rotation every 30 days via KeyManager
  • 🧨 Secure Shredding of original files post-encryption
  • πŸ“Š Performance benchmarking against traditional algorithms (RSA)
  • πŸ“‚ Lightweight & memory-efficient design with Python
  • πŸ“Ž Suitable for cloud, IoT, and enterprise deployments

🧠 System Architecture

  • Key Exchange: ECIES using SECP256R1 + Diffie-Hellman
  • Symmetric Key Derivation: HKDF with SHA-256
  • Encryption: AES-GCM with IV and tag
  • Shredding: Multi-pass file overwrite + deletion

Fig: High-Level Encryption Workflow


πŸ“ Project Structure

File Description
KeyCrypt_Shield.ipynb Jupyter notebook with full implementation
cipher.txt Output of encrypted file
decrypted.txt Output after decryption
example.txt Sample input text
encryption_flow.jpg Visual diagram of ECIES + Key Rotation flow
Workflow_Diagram.jpg System architecture and secure deletion diagram
performance_plot.png Benchmark results (ECIES vs RSA)
image.png Project visual (for documentation use)
README.md This file

πŸ”¬ Performance Metrics

Metric RSA (2048-bit) ECIES + AES-GCM
Encryption Time 45–60 ms 12–18 ms
Decryption Time 35–50 ms 10–15 ms
Memory Usage 10 MB 6 MB
Throughput 8 files/sec 18–25 files/sec
Ciphertext Size Large Compact
Key Rotation Manual Automated
File Deletion Not Included Secure Shredding

πŸ” Security Highlights

  • Ephemeral keys for forward secrecy
  • AES-GCM ensures authentication and integrity
  • Periodic key expiry limits exposure
  • Secure file overwrite prevents data recovery
  • Defense against MITM, brute-force, and replay attacks

πŸ›  Requirements

  • Python 3.7+
  • cryptography package
  • os, json, time, secrets, matplotlib (for plotting)

Install dependencies:

pip install cryptography matplotlib

πŸ“ˆ Results

  • ⚑ Fast performance: Encryption-decryption of small files completes in under 1 second
  • 🧨 Low overhead: Secure shredding introduces minimal performance impact
  • πŸ“¦ Scalable: Efficient processing even with large batches of files
  • βœ… Accuracy: Decrypted output matches the original message

🧩 Applications

  • πŸ“Š Financial Security: Secure banking and transactional data
  • πŸ₯ Healthcare: Protection of Electronic Medical Records (EMRs)
  • ☁️ Cloud & IoT: Lightweight, high-security encryption for distributed systems
  • πŸ›‘οΈ Government & Defense: Robust protection for classified and sensitive documents

πŸ’‘ Future Work

  • πŸ” Post-quantum cryptographic upgrades
  • ⛓️ Blockchain-based audit trails for transparency
  • πŸ€– AI-powered anomaly detection in key usage
  • πŸ‘₯ Role-based access control for multi-user environments
  • ☁️ Optimization for IoT and cloud ecosystems

Made with πŸ’» by Pranay Sharma
πŸ“§ pranay.sharma2022@vitstudent.ac.in

About

πŸ” KeyCrypt Shield – Secure file encryption using ECIES + AES-GCM with automated key rotation and secure shredding. Built for finance, healthcare, and IoT data protection.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published