Impossible is an Encoder/Decoder.
Project description
Impossible: A way to encode everything
Installation
pip install impossible
Usage
Simple Example
import impossible
encoded_string = impossible.encode("Hello World!")
print(encoded_string)
decoded_string = decode(encoded_string)
print(decoded_string)
Using Keys
To use a key, first you must generate it.
import impossible
key = impossible.generate_key()
print(key)
# -> 9,ogwje68zm5kcsbxl0yrf4d2731qauptinhv.m8hzqsbvx,lketd4ca0wgpjyu691ir725onf3.
Then, you can encode and decode using that key.
import impossible
encoded_value = impossible.encode("Hello World",ek="9,ogwje68zm5kcsbxl0yrf4d2731qauptinhv.m8hzqsbvx,lketd4ca0wgpjyu691ir725onf3.",key=True)[0]
print(encoded_value)
decoded_value = decode(encoded_value,key="9,ogwje68zm5kcsbxl0yrf4d2731qauptinhv.m8hzqsbvx,lketd4ca0wgpjyu691ir725onf3.")
print(decoded_value)
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
impossible-0.1.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for impossible-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6561474e165657a75bd31947721ef9eb6a0767963e307989c00c66ee143d171a |
|
MD5 | 72784d73e388edffced7ce35917752d2 |
|
BLAKE2b-256 | f622f08217838dba51864107aa328f051d6595a8ec655b6cb3aee7f9a691a0d3 |