Skip to content

Instantly share code, notes, and snippets.


Steve Abrams steve-abrams

View GitHub Profile
steve-abrams / implementation.scala
Created Jun 17, 2016 — forked from micke/implementation.scala
Super simple scala wrapper around org.apache.commons.codec.binary.Base64
View implementation.scala
package utils
import org.apache.commons.codec.binary.{ Base64 => ApacheBase64 }
object Base64 {
def decode(encoded: String) = new String(ApacheBase64.decodeBase64(encoded.getBytes))
def encode(decoded: String) = new String(ApacheBase64.encodeBase64(decoded.getBytes))