Dead-simple string obfuscation library
Project description
Zanza
Dead-simple string obfuscation algorithm.
Obfuscation works by identifying the Unicode code points (character codes) of each character in the input string. The return value is a list, in which the first element is also a list containing the first character's code point digits. The rest of the elements are the code point delta values, where each element is compared to the previous one.
As the project supports Python 3.0 and up, all Unicode strings should work.
Installation
To install as a project-dependency, execute the following command in the project's directory:
pip install zanza
To use as a standalone command-line utility, add the --user flag to the
previous command:
pip install --user zanza
Usage
This package contains scripts for both string obfuscation (zanza) and
deobfuscation (dezanza)
Obfuscation
>>> from zanza import zanza
>>> zanza("I am awesome!")
[[7, 3], -41, 65, 12, -77, 65, 22, -18, 14, -4, -2, -8, -68]
>>> zanza("Emojis will work, too: 💪")
[[6, 9], 40, 2, -5, -1, 10, -83, 87, -14, 3, 0, -76, 87, -8, 3, -7, -63, -12, 84, -5, 0, -53, -26, 65501]
>>> zanza("""Another
... fancy
... stuff""")
[[6, 5], 45, 1, 5, -12, -3, 13, -104, 92, -5, 13, -11, 22, -111, 105, 1, 1, -15, 0]
Deobfuscation
>>> from dezanza import dezanza
>>> dezanza([[8, 3], 18, -2, 15, -13, 15, -84, 83, 1, -2, -9, 5, -7, -71, 82, -13, 17, -17, -4, 11, -7, -1])
'Secret string revealed'
>>> dezanza([[7, 8], 33, -101, 98, 3, -1, -7, -2, 13, -104, 101, -13, 4, 15, -2, -16, -2, 19, -15, -1])
'No\nlonger\nobfuscated'
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zanza-0.1.0.tar.gz.
File metadata
- Download URL: zanza-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c25c91417c389f2f6075a796987b0df59c377d12c6ebfd4c01974e88408a6726
|
|
| MD5 |
950509260d35b90dfb9723da01ce3b65
|
|
| BLAKE2b-256 |
e7c7c0433609658a0852ba1f90633d08c85c225563ebad07327ec502b151f6aa
|
File details
Details for the file zanza-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zanza-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27d19588495969bc387a6d703d98082ebc6652cc5fcc691f3b1a92347011eff5
|
|
| MD5 |
07bfd718978cb3f3b6a4bcd133a98ad0
|
|
| BLAKE2b-256 |
a5652c487f109b3a04d44a2b12730063949508fbe7abdbda2950d1a2b2df6dca
|