Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Base64-decode-data/Scala/base64-decode-data.scala
Normal file
14
Task/Base64-decode-data/Scala/base64-decode-data.scala
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import java.util.Base64
|
||||
|
||||
object Base64Decode extends App {
|
||||
|
||||
def text2BinaryDecoding(encoded: String): String = {
|
||||
val decoded = Base64.getDecoder.decode(encoded)
|
||||
new String(decoded, "UTF-8")
|
||||
}
|
||||
|
||||
def data =
|
||||
"VG8gZXJyIGlzIGh1bWFuLCBidXQgdG8gcmVhbGx5IGZvdWwgdGhpbmdzIHVwIHlvdSBuZWVkIGEgY29tcHV0ZXIuCiAgICAtLSBQYXVsIFIuIEVocmxpY2g="
|
||||
|
||||
println(text2BinaryDecoding(data))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue