ehn-sign-verify-python-trivial
ehn-sign-verify-python-trivial copied to clipboard
IndexError: index out of range
Traceback (most recent call last):
File "./hc1_verify.py", line 155, in
was this while trying echo '{"A": 1234}' | python3.8 hc1_sign.py | python3.8 hc1_verify.py
? if so try replacing line 149 in hc1_sign.py with this one out = b'HC1:' + bytes(b45encode(out),"utf8").decode().encode('ascii')
update:
base45 encoding seems to be different on windows and linux
thats the variation that works for both
if platform == "win32" : out = b'HC1:' + b45encode(out).decode().encode('ascii') #linux else: out = b'HC1:' + bytes(b45encode(out),"utf8").decode().encode('ASCII')