base64scala

Installation

Add the following to your sbt build (Scala 2.11.x, 2.12.x):

Release Version

resolvers += "Sonatype OSS Release Repository" at "https://oss.sonatype.org/content/repositories/releases/"

libraryDependencies += "com.github.j5ik2o" %% "base64scala" % "1.0.4"

Snapshot Version

resolvers += "Sonatype OSS Snapshot Repository" at "https://oss.sonatype.org/content/repositories/snapshots/"

libraryDependencies += "com.github.j5ik2o" %% "base64scala" % "1.0.5-SNAPSHOT"

Usage

  • Encode
val string = "ABC"
val base64Value: Base64String = Base64StringFactory().encode(string)
  • Decode
val original = base64Value.decode // ABC