Skip to main content

Simple Python XOR string encryption library

Project description

XOR-Crypt-Python

A simple XOR string encryption library based on the JavaScript library XOR-Crypt by RobLoach but in Python.

Usage

Works exactly like the JavaScript version. The same function encrypts and descripts a string using a given key.

import xorCryptPy

encrypted = xorCryptPy('Hello World')
# Outputs: Ncjji&Qitjb

decrypted = xorCryptPy(encrypted)
# Outputs: Hello World

# Use your own XOR Key.
encrypted = xorCryptPy('Hello World', 9)
decrypted = xorCryptPy(encrypted, 9)

(The default key is the same as the one from the JavaScript version!)

License

Licensed under the MIT license

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

xorCryptPy-1.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

xorCryptPy-1.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file xorCryptPy-1.0.1.tar.gz.

File metadata

  • Download URL: xorCryptPy-1.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for xorCryptPy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 601c7426ace00316c9d42721444382a0abb0a172fe17f92ef9d4a51c0d73e6e5
MD5 872f0fb1d99a9d6f4691281b22781379
BLAKE2b-256 5b9051aaec09a3ecfc4e1639c5c136a87e91cc4828f9c764c217a4fd9ee3ffa0

See more details on using hashes here.

File details

Details for the file xorCryptPy-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: xorCryptPy-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for xorCryptPy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63705c6220dab60e1f58209feecb4f341f924d6d0cb9a0595ea7f4a8356df785
MD5 b7b3e47b89d80bb29618dc653e5d5378
BLAKE2b-256 37356ece9d1d201fa9ef78807fb2890186680fe39a87f30fd7a77fc49286ff43

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