How nidhi-bhatt/imagecrypto works
Project type and purpose
• This is an open-source Python library (“ImageCrypto”) for secure image encryption using multiple symmetric ciphers and ECC for key generation.
• The README calls out a consistent API across modules, performance metrics, and image visualization.
File structure
Top-level:
• pyproject.toml / requirements / dist – packaging and distribution artifacts
• src/imagecrypto – core source code
– _init_.py
– main.py (entrypoint / orchestrator)
– aes_gcm_128.py, aes_ccm_128.py, aes_gcm_256.py, aes_eax_128.py, chacha20_poly1305.py, salsa20.py (one module per algorithm)
README for additional insights
• Core features: ECC key generation (SECP256R1), symmetric encryption algorithms, consistent API (get_encrypted_image, get_encryption_time, display_images), dependencies (cryptography, pycryptodome, cv2, numpy, matplotlib).
• Usage: user’s Python code imports a cipher module and calls its API.
Elements
– Another for external dependencies
Final recommendations
• Six cipher modules under a shared “Encryption Strategies” container.
• Optional branches (e.g., display_images path).
• Keep the ECC key-gen component visually centralized if shared.