스마트폰 BTC 채굴앱
https://get.cryptobrowser.site/34473645
// String을 Data로 변경
let string = "hello world"
let strData = string.data(using: .utf8)!
Base64 인코딩 / 디코딩 ( String )
// Base64 인코딩 ( Data -> Base64 encoded String )
let base64EncString = strData.base64EncodedString()
// Base64 디코딩 ( Base64 encoded String -> Base64 decoded String )
let decodedData = Data(base64Encoded: base64EncString)!
let base64DecString = String(data: decodedData, encoding: .utf8)!
print("Base64인코딩(String) : \(base64EncString)")
print("Base64디코딩(String) : \(base64DecString)")
Base64 인코딩 / 디코딩 ( Data )
// Base64 인코딩 ( Data -> Base64 encoded Data )
let base64EncData = strData.base64EncodedData(options: .lineLength64Characters)
// Base64 디코딩 ( Base64 encoded Data -> Base64 decoded Data )
let base64DecData = Data(base64Encoded: base64EncData, options: [])! as Data
print("Base64인코딩(Data) : \(String(data: base64EncData, encoding: .utf8)!)")
print("Base64디코딩(Data) : \(String(data: base64DecData, encoding: .utf8)!)")
스마트폰 BTC 채굴앱
https://get.cryptobrowser.site/34473645
2020/05/25 - [iOS/Swift] - RSA 암호화 / 복호화
2020/05/19 - [AI/Algorithm] - Generic algorithm
2020/05/19 - [AI/Algorithm] - neural network
2020/05/19 - [AI/Algorithm] - minimax full search example
2020/05/19 - [AI/Algorithm] - minimax, alpha-beta pruning
2020/05/19 - [iOS/Tips] - Bitbucket Carthage 사용
2020/05/19 - [iOS/Jailbreak] - Fridump 사용법 (3/3) - 메모리 덤프
2020/05/19 - [iOS/Jailbreak] - Fridump 사용법 (2/3) - Mac OS X 환경 구축
2020/05/19 - [iOS/Jailbreak] - Fridump 사용법 (1/3) - iOS디바이스 환경 구축
2020/05/19 - [iOS/Jailbreak] - Fridump, Tcpdump, OpenSSL Quick Guide
2020/05/19 - [OS/Mac OS X] - gdb 사용
2020/05/19 - [iOS/Jailbreak] - Frida 설치 및 사용법
'개발 > iOS' 카테고리의 다른 글
UserAgent 변경/추가 (0) | 2020.05.25 |
---|---|
RSA 암호화 / 복호화 (0) | 2020.05.25 |
Bitbucket Carthage 사용 (0) | 2020.05.19 |
Fridump 사용법 (3/4) - 메모리 덤프 (0) | 2020.05.19 |
Fridump 사용법 (2/4) - Mac OS X 환경 구축 (0) | 2020.05.19 |