HF RL Explorer

one-time passwords: add validation

one-time passwords: add validation: a task in smol-software-harbor (Harbor dataset). decodeBase32 in src/base32.js silently decodes secrets containing characters outside the base32 alphabet (users often type 0 , 1 or 8 ), producing wrong codes. Make it throw an Error whose message is invalid…

The task

`decodeBase32` in `src/base32.js` silently decodes secrets containing characters outside the base32 alphabet (users often type `0`, `1` or `8`), producing wrong codes. Make it throw an `Error` whose message is `invalid base32 character: <char>` for the first such character (spaces, `=` padding and lower case stay…

Part of efederici/smol-software-harbor.