Skip to content

Instantly share code, notes, and snippets.

@geunho
Created July 28, 2021 05:56
Show Gist options
  • Save geunho/99f38af22052a0af57e81f8025303e31 to your computer and use it in GitHub Desktop.
Save geunho/99f38af22052a0af57e81f8025303e31 to your computer and use it in GitHub Desktop.
def string2hex(str: String): String = str.toSeq.map(_.toInt.toHexString).mkString(" ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment