Decode
python setup.py install
c++ -O3 -Wall -shared -std=c++11 -fPIC -Iinclude $(python -m pybind11 --includes) decoder.cpp -o decoder$(python-config --extension-suffix)
from decoder import decoder
key=decoder("$2*Zan:<plZJ[bbBFkv0U3=$VR0D$d4R"#H1A3*k'6$")
print(key) # "lascuatromarias"
from decoder import decoder
key=decoder("$2 ... /r ...$") # Incorrect
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb8 in position 1: invalid start byte
key=decoder("$2 ... //r ...$") # Correct
>>> decoder("$2*Zan:<plZJ[bbBFkv0U3=$VR0D$d4R"#H1A3*k&ap$")
'Invalid'
>>> decoder("$2*Zan:<plZJ[bbBFkv0U3=$VR0D$d4R"#H1A3*k'6$")
'lascuatromarias'