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
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 modeaes_ccm_128
: AES-128 in CCM modeaes_gcm_256
: AES-256 in GCM modeaes_eax_128
: AES-128 in EAX modechacha20_poly1305
: ChaCha20-Poly1305salsa20
: 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 dataget_encryption_time(image_path)
: Returns encryption timedisplay_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file imagecrypto-0.0.1.tar.gz
.
File metadata
- Download URL: imagecrypto-0.0.1.tar.gz
- Upload date:
- Size: 6.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c8f420ecf1f6521b4a66dfd723c798938d9a4511a6f20415f4d9a994138c853 |
|
MD5 | 2ddbc28e8f6ec9c5c899a00dcd6882ba |
|
BLAKE2b-256 | 427b26d5da2092029e5ce6e58881cb0b0484ef745195f321adbb27513e82e25b |
File details
Details for the file imagecrypto-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: imagecrypto-0.0.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcd562b61835832dd7774b3c732e291b61cd657220a566e68b3ea44d38614e52 |
|
MD5 | 85d4f1f8e9b3180c9e69b373f74de243 |
|
BLAKE2b-256 | ab9622eba3ffe37c067a352f260ca02bea7300e147f90ccc51779010fbbc5021 |