Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
10
Task/Base64-decode-data/Kotlin/base64-decode-data.kts
Normal file
10
Task/Base64-decode-data/Kotlin/base64-decode-data.kts
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