Skip to content

Instantly share code, notes, and snippets.

@geunho
Created April 19, 2022 05:03
Show Gist options
  • Save geunho/de9248dcc9c984c85d9408f15da72d7e to your computer and use it in GitHub Desktop.
Save geunho/de9248dcc9c984c85d9408f15da72d7e to your computer and use it in GitHub Desktop.
val contents = "문자열 base64 인코딩/디코딩 테스트."
val encoded = java.util.Base64.getEncoder.encode(contents.getBytes)
val decoded = java.util.Base64.getDecoder.decode(encoded)
val result = new String(decoded)
assert(contents == result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment