Skip to main content

ImageCrypto is a Python package for secure image encryption using various symmetric ciphers with asymmetric Elliptic Curve Cryptography (ECC) for key generation.

Reason this release was yanked:

Not working

Project description

🔐 ImageCrypto

License: MIT Python Versions

ImageCrypto is a powerful and easy-to-use Python package for secure image encryption using various symmetric ciphers with asymmetric Elliptic Curve Cryptography (ECC) for key generation.

🌟 Features & Available Modules

ImageCrypto offers multiple symmetric encryption algorithms, each implemented as a separate module:

  • aes_gcm_128: AES-128 in GCM mode
  • aes_ccm_128: AES-128 in CCM mode
  • aes_gcm_256: AES-256 in GCM mode
  • aes_eax_128: AES-128 in EAX mode
  • chacha20_poly1305: ChaCha20-Poly1305
  • salsa20: Salsa20

Key features:

  • Secure key generation using asymmetric ECC (SECP256R1 curve)
  • Fast symmetric encryption
  • Easy-to-use API
  • Performance metrics (encryption time)
  • Visualization of original and encrypted images

Each module provides the same API:

  • get_encrypted_image(image_path): Encrypts the image and returns the encrypted image data
  • get_encryption_time(image_path): Returns encryption time
  • display_images(original_path, encrypted_image): Displays the original and encrypted images

This consistent API across all encryption algorithms allows for easy comparison and flexibility in choosing the most suitable method for your needs.

🚀 Installation

Install ImageCrypto using pip:

pip install imagecrypto

📝 Usage Example

Here's an example of how to use ImageCrypto and display the results:

from imagecrypto import aes_gcm_256
import matplotlib.pyplot as plt

# Define the path for your original image
original_image = "path/to/your/image.jpg"

# Encrypt an image
encrypted_image = aes_gcm_256.get_encrypted_image(original_image)

# Get encryption time
encrypt_time = aes_gcm_256.get_encryption_time(original_image)
print(f"Encryption time: {encrypt_time:.2f} ms")

# Display the original and encrypted images
aes_gcm_256.display_images(original_image, encrypted_image)

Inputs

  • Path to an original image file (JPEG, PNG, etc.)

Outputs

  • Encrypted image data
  • Encryption time (in milliseconds)
  • Visual display of original and encrypted images

🛠️ Dependencies

  • OpenCV (cv2)
  • cryptography
  • pycryptodome
  • numpy
  • matplotlib

📄 License

ImageCrypto is released under the MIT License.

📧 Contact

Project Link: https://github.com/nidhi-bhatt/imagecrypto


Made with ❤️ by Nidhi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imagecrypto-0.0.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

imagecrypto-0.0.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file imagecrypto-0.0.2.tar.gz.

File metadata

  • Download URL: imagecrypto-0.0.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-38-generic

File hashes

Hashes for imagecrypto-0.0.2.tar.gz
Algorithm Hash digest
SHA256 abbadcf7022f64040c873afda8909b8cc92e4f536cac43f5182f53b5cdfa2c85
MD5 7803d3425baa8b519811d59ad8a6ebc2
BLAKE2b-256 6178aa61728ff28e9f94fcc72c932eb80853687a410d7db888ac212531b21281

See more details on using hashes here.

File details

Details for the file imagecrypto-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: imagecrypto-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-38-generic

File hashes

Hashes for imagecrypto-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3909b1c0b9845023eeced253977dea27857b2bbb58f93f10a641d211c2ad5d6
MD5 571b5ac8da4fdf177a41c8fde4d99e38
BLAKE2b-256 f2851457c37949a7b9cdf69f17408d0e14b4deba90837571b492b3fe6850aca8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page