A comprehensive encryption library for Python.
Project description
EncryptionX
EncryptionX is a comprehensive encryption library for Python that supports a wide range of encryption and decryption algorithms including base encoding, hashing, symmetric and asymmetric encryption, and protocol-based encryption such as PGP.
Features
- Base Encoding: Base16, Base32, Base64
- Hashing: MD5, SHA256
- Symmetric Encryption: AES, DES, Triple DES, RC4
- Asymmetric Encryption: RSA
- Protocol Encryption: PGP
Installation
You can install the package via pip:
pip install encryptionx
Usage Example
python
Copy
Edit
from encryptionx.encode import Encode
from encryptionx.decode import Decode
# Define a symmetric key (16 bytes for AES)
symmetric_key = b'0123456789abcdef'
# Create encoder and decoder instances
encoder = Encode(key=symmetric_key)
decoder = Decode(key=symmetric_key)
# Encrypt and decrypt a sample text using AES
sample_text = "Hello, EncryptionX!"
encrypted = encoder.aes(sample_text, mode='text', cipher_mode='CBC')
decrypted = decoder.aes(encrypted, mode='text', cipher_mode='CBC')
print("Encrypted (AES):", encrypted)
print("Decrypted (AES):", decrypted.decode('utf-8'))
Requirements
Python 3.6+
PyCryptodome
Author
Mohammad Taha Gorji
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file encryptionx-1.0.0.tar.gz.
File metadata
- Download URL: encryptionx-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96f82e09fa43f4d118ac8dac1fc94152380bca2e6a2e57728f4650ba265d4adc
|
|
| MD5 |
1fe91fb343208d48d48e7736d0f177c0
|
|
| BLAKE2b-256 |
4b126781c973a456b7d34faa67ff1f1d68cb7400d74da18618a3516625645eb6
|
File details
Details for the file encryptionx-1.0.0-py3-none-any.whl.
File metadata
- Download URL: encryptionx-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fdd587ab0d26e367eb481ee196e03900880a8d96bb6e1bd3bbf9a58a5b417fb
|
|
| MD5 |
94cd55e815c9c21a8d6516c55e31aa1e
|
|
| BLAKE2b-256 |
e9d07d638bee24d79d93cf14b2822d9426a91d660f8b29a74cb1565e2ae30799
|