Skip to content

Instantly share code, notes, and snippets.

@jefisu
Last active August 21, 2022 14:26
Show Gist options
  • Save jefisu/ee4fd5a01079b146d783646cd5485ea0 to your computer and use it in GitHub Desktop.
Save jefisu/ee4fd5a01079b146d783646cd5485ea0 to your computer and use it in GitHub Desktop.
// add dependency
implementation "commons-codec:commons-codec:1.15"
import org.apache.commons.codec.digest.DigestUtils
fun generateSHA512(input: String) = DigestUtils.sha512Hex(input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment