Code and decode string
Project description
Code and Decode string
Install and import
For install indecode : pip install indecode For import indecode : import indecode
Functions
This module contain four functions :
generate_key() - return string
code(text to code in str, key return by the “generate_key()” function) - return string
decode(text return by the “code()” function, key return by the “generate_key()” function) - return string
get_key_with_img(complete path of the image) - return string, can replace the “generate_key()” fonction
Errors
The indecode module can trigger the following errors :
TypeError : one of the arguments is not a string
CodeError : one of the caracters in the text argument is not encodable
DecodeError : one of the caracters in the text argument is not decodable
KeyElementError : one of the caracters in the key argument must not be in the key
KeyLengthError : the key is not of the expected length.
ImageNotFoundError : ‘/home/pi/Documents/indecode/img.jpg’ not found.
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.