Skip to main content

Simple Python XOR string encryption library

Project description

XOR-Crypt-Python

PyPI Version Python Versions License: MIT

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

Installation

pip install xorCryptPy

You can also download the package manually from PyPI.

Usage

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

from xorCryptPy import xorCrypt

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

decrypted = xorCrypt(encrypted)
# Outputs: Hello World

# Use your own XOR Key.
encrypted = xorCrypt('Hello World', 9)
decrypted = xorCrypt(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.3.tar.gz (2.5 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.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xorCryptPy-1.0.3.tar.gz
  • Upload date:
  • Size: 2.5 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.3.tar.gz
Algorithm Hash digest
SHA256 9a1c10a7797d9d60b672d280c0dd04ffa60bd0a3b4b0ec0ff426e22389876fa0
MD5 643d8008cb48bc9bc069db89e06d3d61
BLAKE2b-256 574942dbe40491f67f6f5c259213843ac59102f66050d714b31aa7ed814d700c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xorCryptPy-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f3ec2c8401a53e01a8531c15c471798586297300afa600d4c9fbc83d1f9ba3d
MD5 09965e4b2fabbdf9b67c5d9d3144aa95
BLAKE2b-256 111caddd87b0d8ae27964c13bcb289b0d05b9a902d6e89c067a4c94d98dbee12

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