Open adegams opened 2 years ago
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')
else: out = b'HC1:' + bytes(b45encode(out),"utf8").decode().encode('ASCII')`
Traceback (most recent call last): File "./hc1_verify.py", line 155, in
if (cin[0] == 0x78):
IndexError: index out of range