Skip to main content

ImageCrypto is a powerful and easy-to-use Python package for secure image encryption and decryption.

Reason this release was yanked:

Not working

Project description

🔐 ImageCrypto

License: MIT

ImageCrypto is a powerful and easy-to-use Python package for secure image encryption and decryption.

🌟 Features & Available Modules

ImageCrypto offers multiple 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_hmac: Salsa20 with HMAC

Key features:

  • Secure key exchange using ECDHE
  • Fast encryption and decryption
  • Easy-to-use API
  • Performance metrics (encryption and decryption times)

Each module provides the same API:

  • get_images(image_path): Returns encrypted and decrypted images
  • get_times(image_path): Returns encryption and decryption times

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

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 to your original image
original_image = "path/to/your/image.jpg"

# Encrypt and decrypt an image
encrypted_image, decrypted_image = aes_gcm_256.get_images(original_image)

# Get encryption and decryption times
encrypt_time, decrypt_time = aes_gcm_256.get_times(original_image)
print(f"Encryption time: {encrypt_time:.2f} ms")
print(f"Decryption time: {decrypt_time:.2f} ms")

# Save encrypted and decrypted images
cv2.imwrite(f"encrypted.png", encrypted_image)
cv2.imwrite(f"decrypted.png", decrypted_image)

Inputs

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

Outputs

  • Encrypted image
  • Decrypted image
  • Encryption time (in milliseconds)
  • Decryption time (in milliseconds)

🛠️ Dependencies

  • Pillow
  • cryptography
  • crypto
  • pycryptodome
  • numpy
  • matplotlib

📄 License

ImageCrypto is released under the MIT License.


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.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

imagecrypto-0.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imagecrypto-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 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.1.0.tar.gz
Algorithm Hash digest
SHA256 ee9c66da6f06e77c2c5204626e496659d1eaf1d57ec616081ce8a988a7efb641
MD5 7a388f96adc58126db13a72eb1ef7197
BLAKE2b-256 e68d533b78451b86573d6e8dd026a5c4f783ac723fd7054640ff07a938cbe11d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: imagecrypto-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 863f08db957a0d3238c22b045a095d46101ecebc034632b2654aad04d54c3e4f
MD5 c799efbba9467b43f6ca7de0d989a38f
BLAKE2b-256 6446a4215bee90c9dacf2a0e1643d9f7061ca6316a2561715526232a8c54210f

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