bfreis / otp

One Time Password generation with Bash
MIT License
22 stars 5 forks source link

base32: invalid input #1

Closed zitiger closed 3 years ago

zitiger commented 4 years ago

When i run "sh opt.sh --run-tests"

base32: invalid input [FAIL] hotp(, 0) = 328482 == 755224 [FAIL] hotp(, 1) = 812658 == 287082 [FAIL] hotp(, 2) = 073348 == 359152 [FAIL] hotp(, 3) = 887919 == 969429 [FAIL] hotp(, 4) = 320986 == 338314 [FAIL] hotp(, 5) = 435986 == 254676 [FAIL] hotp(, 6) = 964213 == 287922 [FAIL] hotp(, 7) = 267638 == 162583 [FAIL] hotp(, 8) = 985814 == 399871 [FAIL] hotp(, 9) = 003773 == 520489 base32: invalid input base32: invalid input base32: invalid input

os: Mac OS 10.15.7

base32 --version base32 (GNU coreutils) 8.31

bfreis commented 4 years ago

Hi, thanks for reporting the issue.

Could you please try to run it with bash rather than sh?

Even if it's a symlink, Bash modifies some of its behavior if it's invoked with the name sh for compatibility, and it may break something in the code.

Thanks! Bruno

bfreis commented 3 years ago

Closing due to inactivity.