Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unreadable-0.0.1.tar.gz (2.5 kB view hashes)

Uploaded source

Built Distribution

unreadable-0.0.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page