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
Hashes for unreadable-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9082907abe53f7fdd3170e0d93f2bc6646a8e7241d071c30a5f2e09339bbce22 |
|
MD5 | 86c80e9a803ba91e813940a298637c72 |
|
BLAKE2b-256 | 40c4f5b89bbd326613ee755cb6fa74a38b75371fb29f18bfe7a1adf9da81ffa0 |