Created
November 20, 2012 05:47
-
-
Save bowmanb/4116261 to your computer and use it in GitHub Desktop.
scala md5 string as string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
libraryDependencies += "commons-codec" % "commons-codec" % "1.7" | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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