Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
md5 method kotlin
fun md5(input:String): String {
val md = MessageDigest.getInstance("MD5")
return BigInteger(1, md.digest(input.toByteArray())).toString(16).padStart(32, '0')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment