Inspired from https://github.com/delight-im/ShortURL .An encoding scheme to convert an id to a string and vice versa.Uses a space of 52 characters and is url safe.
The auto increment id from database can be encoded and used as url shortener
goshort.encode()
takes an ID and turns it into a short stringgoshort.decode()
takes a short string and turns it into an ID
3141592
<=>vJST
123456789
<=>pgK8p
This project is licensed under the terms of the MIT License.