Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Base64-decode-data/Kotlin/base64-decode-data.kotlin
Normal file
10
Task/Base64-decode-data/Kotlin/base64-decode-data.kotlin
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import java.util.Base64
|
||||
|
||||
fun main() {
|
||||
val data =
|
||||
"VG8gZXJyIGlzIGh1bWFuLCBidXQgdG8gcmVhbGx5IGZvdWwgdGhpbmdzIHVwIHlvdSBuZWVkIGEgY29tcHV0ZXIuCiAgICAtLSBQYXVsIFIuIEVocmxpY2g="
|
||||
val decoder = Base64.getDecoder()
|
||||
val decoded = decoder.decode(data)
|
||||
val decodedStr = String(decoded, Charsets.UTF_8)
|
||||
println(decodedStr)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue