Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
10
Task/Base64-decode-data/Swift/base64-decode-data.swift
Normal file
10
Task/Base64-decode-data/Swift/base64-decode-data.swift
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import Foundation
|
||||
|
||||
let input = """
|
||||
VG8gZXJyIGlzIGh1bWFuLCBidXQgdG8gcmVhbGx5IGZvdWwgdGhpbmdzIHVwIHlvdSBuZWVkIGEgY29tcHV0ZXIuCiAgICAtLSBQYXVsIFIuIEVocmxpY2g=
|
||||
"""
|
||||
|
||||
if let decoded = Data(base64Encoded: input),
|
||||
let str = String(data: decoded, encoding: .utf8) {
|
||||
print( str )
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue