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.
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.2.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for xorCryptPy-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 437ea2a3dd67e94db29f364ebc25f8438a612597c0386d24a2d60e0dee85222b |
|
MD5 | 1293cbbc98a19e949a178c2cf2aeac45 |
|
BLAKE2b-256 | 890193e18ffad9163ce2ff11fc3c895ec496db2360c3fd1742b8a067b3ac9a60 |