tototoshi / scala-base62   0.1.0

GitHub

Base62 encode/decoder for Scala

Scala versions: 2.10

scala-base62

Base62 encoder/decoder for Scala

Install

for 2.9.x and 2.10.0

libraryDependencies += "com.github.tototoshi" %% "scala-base62" % "0.1.0"

Usage

scala> val base62 = new Base62
base62: com.github.tototoshi.base62.Base62 = com.github.tototoshi.base62.Base62@336215d4

scala> base62.encode(12345)
res0: String = 3D7

scala> base62.decode("3D7")
res1: Long = 12345