An encoder and decoder.
Project description
Unreadable is an encode and a decoder.
Installation
pip install unreadable
Usage
unreadable.encode(string,key='generate')
string: the string you want to encode
key (Optional): the encode key (Can be made with generate_key, more on that later).
encoded_string = encode('An encoded string!')
Will output something like ZXI5X@>*5*IP]0nX,-+AacsB_"|z}M7-YDxOCK&r^\fd50] 8n>UvH:P*=,hWk<6u;4@gNX?$GJVE(L%j[!R2)T.{Zm9Qe/pb1loiw#3FSyqt'I
without key.
unreadable.decode(string,key='generate')
string: the encoded string you want to decode
key (Optional): the key you used to encode the string (Not needed if you left key blank).
decoded_string = decode('ZXI5X@>*5*IP]0nX,-+AacsB_"|z}M7-YDxOCK&r^\fd50] 8n>UvH:P*=,hWk<6u;4@gNX?$GJVE(L%\[!R2)T.{Zm9Qe/pb1loiw#3FSyqt'+"'"+'I')
Will output An encoded string!
unreadable.generate_key(chars=r'1234567890-=!@#$%^&*()_qwertyuiop[]asdfghjkl;'+"'"+r'zxcvbnm,./|QWERTYUIOP{}ASDFGHJKL:"ZXCVBNM<>? ')
chars: The characters the encoder will encode (Otherwise it will just be the same charater. Example: ÷ encoded will be ÷ unless it's in the chars).
key = generate_key()
encoded_string = encode('Encoded using a custom key!',key)
decoded_string = decode(encoded_string,key)
print(decoded_string)
Will output Encoded using a custom key!
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
File details
Details for the file unreadable-0.0.1.tar.gz
.
File metadata
- Download URL: unreadable-0.0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb70ec3ebbc1c1736b9867315a0cffaf9da5eded5400c8d1ee3feb77dffaf9c4 |
|
MD5 | d851c53101f8cf87f7a58edb4e090cf2 |
|
BLAKE2b-256 | 4ca17fccad73d76e392b33d68a71bb1df16053caa720f3b003d84d2831e7d91a |
File details
Details for the file unreadable-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: unreadable-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9082907abe53f7fdd3170e0d93f2bc6646a8e7241d071c30a5f2e09339bbce22 |
|
MD5 | 86c80e9a803ba91e813940a298637c72 |
|
BLAKE2b-256 | 40c4f5b89bbd326613ee755cb6fa74a38b75371fb29f18bfe7a1adf9da81ffa0 |