Skip to main content

A package for encrypting and decrypting Python files using base64 or emoji obfuscation.

Project description

cryptionpy 1.0.0

cryptionpy is a Python package designed for easy encryption and decryption of Python files using either base64 or emoji obfuscation methods. With cryptionpy, you can secure your source code or obfuscate it for various purposes.

Benefits

  • Easy to Use: Simple command-line interface and Python module functionality.
  • Two Encryption Methods: Choose between base64 or emoji obfuscation for your needs.
  • Flexible: Works as both a command-line tool and a Python module.
  • Efficient: Quickly encrypt and decrypt files with minimal setup.

Installation

You can install the package using pip:

pip install cryptionpy

Usage

As a Command-Line Tool

Encryption

cryptionpy <input_file> <output_file> <method>
  • method
    • emoji
    • base64

Decryption

cryptionpy <input_file> <output_file> base64 --decrypt
  • <input_file>: The Python file you want to encrypt or decrypt.
  • <output_file>: The file where the encrypted or decrypted code will be saved.
  • <method>: The encryption method, either base64 or emoji.
  • --decrypt: Optional flag to decrypt the file instead of encrypting.

As a Module

Encryption

from cryptionpy import encrypt_file

if encrypt_file('input_file.py', 'output_file.py', 'base64'):
    print("Encrypted")
else:
    print("Not Encrypted")

Decryption

from cryptionpy import decrypt_file

if decrypt_file('input_file.py', 'output_file.py', 'base64'):
    print("Decrypted")
else:
    print("Not Decrypted")

Examples

Command-Line

For Base64 encryption:

cryptionpy input_file.py output_file.py base64

For Base64 decryption:

cryptionpy input_file.py output_file.py base64 --decrypt

For Emoji encryption:

cryptionpy input_file.py output_file.py emoji

As a Module

Encryption

from cryptionpy import encrypt_file

if encrypt_file('input_file.py', 'output_file.py', 'base64'):
    print("Encrypted")
else:
    print("Not Encrypted")

Decryption

from cryptionpy import decrypt_file

if decrypt_file('input_file.py', 'output_file.py', 'base64'):
    print("Decrypted")
else:
    print("Not Decrypted")

Benefits

  • Enhanced Security: Protect your source code from unauthorized access or tampering.
  • Versatility: Use either base64 or emoji obfuscation based on your needs.
  • Ease of Use: Integrate easily into your workflow, whether via CLI or programmatically.

Thanks

Thank you for using cryptionpy. Your feedback and contributions are greatly appreciated! If you encounter any issues or have suggestions for improvements, please let us know.

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

cryptionpy-1.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

cryptionpy-1.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file cryptionpy-1.0.0.tar.gz.

File metadata

  • Download URL: cryptionpy-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for cryptionpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 82420a04f3b2ddf7c301a370fcd9660b6e266c4bfc5be07c5e26f92e4be867b3
MD5 92f8a1371da29c8d5e7a72b7b6dad780
BLAKE2b-256 0c1121165a8c0c980dc20cf14df8e930bfcefc320b322a9930cd7f14af046673

See more details on using hashes here.

File details

Details for the file cryptionpy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cryptionpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for cryptionpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fe23309475a229d97a55bc5d233fdee3f91e6c683a79fd17881eb24bb9fb12e
MD5 9c5b4a45324ee99e18c19b72c1f25cc9
BLAKE2b-256 ad8c1d060329a3ad790bd580eb45c3ff647df0847e0d6223e585fab25ba2e2de

See more details on using hashes here.

Supported by

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