Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

encryptionx-1.0.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

encryptionx-1.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for encryptionx-1.0.0.tar.gz
Algorithm Hash digest
SHA256 96f82e09fa43f4d118ac8dac1fc94152380bca2e6a2e57728f4650ba265d4adc
MD5 1fe91fb343208d48d48e7736d0f177c0
BLAKE2b-256 4b126781c973a456b7d34faa67ff1f1d68cb7400d74da18618a3516625645eb6

See more details on using hashes here.

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

Hashes for encryptionx-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fdd587ab0d26e367eb481ee196e03900880a8d96bb6e1bd3bbf9a58a5b417fb
MD5 94cd55e815c9c21a8d6516c55e31aa1e
BLAKE2b-256 e9d07d638bee24d79d93cf14b2822d9426a91d660f8b29a74cb1565e2ae30799

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page