Skip to content

Instantly share code, notes, and snippets.

@bowmanb
Created November 20, 2012 05:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bowmanb/4116261 to your computer and use it in GitHub Desktop.
Save bowmanb/4116261 to your computer and use it in GitHub Desktop.
scala md5 string as string
...
libraryDependencies += "commons-codec" % "commons-codec" % "1.7"
...
...
import org.apache.commons.codec.digest.DigestUtils
...
val testString = "what up, world?"
val testStringMd5 = DigestUtils.md5Hex(testString)
println(testStringMd5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment