Skip to content

Instantly share code, notes, and snippets.

@agharbeia
agharbeia / base62codec.py
Last active December 28, 2016 18:59 — forked from adyliu/base62.py
Base62 encode/decode tools (convert number to string)
#!/usr/bin/env python
#-*- coding:utf-8 -*-
# Base62 tools (convert number <=> string)
# v1.0/20161228
# python 2.x/3.x supported
#
# based on work by Ady Liu <imxylz@gmail.com>
#author: Ahmad gharbeia <ahmad@arabdigitalexpression.org>
#github: github.com/agharbeia