ljh0519 / base62

Base 62 Encode and Decode for Erlang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

base62

Build

$ make

Simple Usage

encode

<<"MTA">> = base62:encode(10),
base62:encode(<<"10">>),
base62:encode("10").

decode

%% decode data to specified format , default format is binary
base62:decode(<<"MTA">>),
base62:decode("MTA"),
base62:decode(<<"MTA">>,string).
base62:decode("MTA",string).

About

Base 62 Encode and Decode for Erlang

License:MIT License


Languages

Language:Erlang 88.3%Language:Makefile 11.7%