Current collected state Current
Observed since 20 Oct, 20:20 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Encrypts and decrypts image files using AES encryption in GCM mode.
The AEIF (AES Encrypted Image File) library is a Python library that provides functionality for encrypting and decrypting image files using the AES encryption algorithm.
You can install the AEIF library using pip:
pip install aeif-lib
To generate a key, you can use the genkey function:
from aeif_lib import genkey
# Generate a random key with the specified size
# (only 16, 24, and 32 bytes is supported) and save it to a file
key_path, key = genkey("path/to/save/key")
To encrypt an image, you can use the encrypt function:
from aeif_lib import AEIFManager, genkey, verify_hash
key_path, _ = genkey("path/to/save/key", 32)
# Create an AEIFManager object
# (key_path is optional but will be required for encryption/decryption if not set)
aeif = AEIFManager(key_path)
# Encrypt the image (key or key_path is optional if the key is already set)
aeif.encrypt("./img.png", "./img_e.aeif")
To decrypt an image, you can use the decrypt function:
from aeif_lib import AEIFManager
key_path = "path/to/the/key"
# Create an AEIFManager object
# (key_path is optional but will be required for encryption/decryption if not set)
aeif = AEIFManager(key_path)
# Decrypt the image (key or key_path is optional if the key is already set)
aeif.decrypt("./img_e.aeif", "./img_d.png")
# Verify the hash of the original image and the decrypted image
verify = verify_hash(("./img.png", "./img_d.png"))
print("Hashes match!" if verify else "Hashes do not match!")
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.3 | 11 Jan 2024 | 2 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 20:20 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:77293508e53b0265b41afa50b88ecaed090c80bc8c92859ed7d435c338da65cd