system-design-primer/resources/noat.cards/Base 62.md

13 lines
418 B
Markdown
Raw Normal View History

2021-03-14 18:13:28 +03:00
+++
noatcards = True
isdraft = False
+++
# Base 62
---
## Introduction of base 62
2021-03-21 13:12:09 +03:00
- Encodes to `[a-zA-Z0-9]` which works well for urls, eliminating the need for escaping special characters
2021-03-14 18:13:28 +03:00
- Only one hash result for the original input and and the operation is deterministic (no randomness involved)
2021-03-21 13:12:09 +03:00
- Base 64 is another popular encoding but provides issues for urls because of the additional `+` and `/` characters