Created
April 19, 2022 05:03
-
-
Save geunho/de9248dcc9c984c85d9408f15da72d7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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