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 details)
Built Distribution
File details
Details for the file impossible-0.1.0.tar.gz
.
File metadata
- Download URL: impossible-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0166c3840f62a0aa62d2ab807a0582d4bd87bd8bfdd903b3f80a77070862141 |
|
MD5 | 4a148f8070c22a4329f6ec26676b2a4d |
|
BLAKE2b-256 | e6de32aa6f3f717219d46a1c06caa8f09de8c84bd0c7402942046da1f8c44517 |
File details
Details for the file impossible-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: impossible-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6561474e165657a75bd31947721ef9eb6a0767963e307989c00c66ee143d171a |
|
MD5 | 72784d73e388edffced7ce35917752d2 |
|
BLAKE2b-256 | f622f08217838dba51864107aa328f051d6595a8ec655b6cb3aee7f9a691a0d3 |