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
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 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_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 imagesget_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
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.2.0.tar.gz
.
File metadata
- Download URL: imagecrypto-0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd3bf107486a5dc6e20d13f0201048e984317bdc6606d98735c31611142f41b9 |
|
MD5 | 335f343892b95e55b58c14bbeb3ef9e5 |
|
BLAKE2b-256 | 20b5916d36e6e3421a9fc0d9194f6bef6c8acbb697c0a93ed4f35067944d1a3f |
File details
Details for the file imagecrypto-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: imagecrypto-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.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 | 3d910ddf5b027eb6b788dc2dbda8e1e40a4a3e86396c98a1a4fde9ea07bef1ca |
|
MD5 | dd30de0dce303fb68cbdafa3b4d5c615 |
|
BLAKE2b-256 | a428e554ab8e0dfe5683a7d0fd232b4a7f5c6fa0cc285ddc288d01670127b379 |