atyrode / vite

✂️ vite! API shortens your links
http://vite.lol/
The Unlicense
0 stars 0 forks source link

Implementation of an int <-> str codec #7

Closed atyrode closed 7 months ago

atyrode commented 7 months ago

This solves #6. The codec can encode an int on the base of the charset it is provided, and returns a char. It can also decode a string into an int in the same fashion.

This effectively offers the ability to use a database's row unique IDs as reference to revert a shortened url.