Skip to content

Instantly share code, notes, and snippets.

@DjangoLC
Created March 17, 2021 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DjangoLC/d00328ca87187e195a087e453677c6b5 to your computer and use it in GitHub Desktop.
Save DjangoLC/d00328ca87187e195a087e453677c6b5 to your computer and use it in GitHub Desktop.
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