Bug report: Base62 does not preserve leading zeros
Open
bug
- Dominant language
- JavaScript
- Stars
- 35.8k
- Forks
- 4.1k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 33
Description
**Describe the bug**
Base62 does not preserve leading zeros
**To Reproduce**
https://gchq.github.io/CyberChef/#recipe=From_Hex('Auto')To_Base62('0-9A-Za-z')From_Base62('0-9A-Za-z')To_Hex('Space',0)&input=MDAxMA
**Expected behaviour**
I expected base62 to preserve leading zeros
**Screenshots**
Contributor guide
Research direction
Start with the linked CyberChef recipe and reproduce the round trip through From Hex, To Base62, From Base62, and To Hex using the input shown. Trace the Base62 operations to determine why leading zeros are lost; done means the original input, including its leading zeros, survives the round trip.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100