If the remaining data is less than 9 bytes, the output will be padded to 14 chars. So this algorithm is suitable for longer inputs, or input length cl

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-09-24 03:30:04

If the remaining data is less than 9 bytes, the output will be padded to 14 chars. So this algorithm is suitable for longer inputs, or input length close to a multiple of 9.

If base36_encode is called multiple times during encoding, the 14-char-padding(s) may be located in the middle of the codes. In this case, this function must be used for decoding.

Even if the input code is out of the code table, the decoding functions can still work, just with wrong result. If the decoded data has an integrity check, the input check can be ignored.

Leave a Comment