0

string to hex conversion

how to convert string to hexadecimal in swift

23rd Sep 2020, 10:51 AM
naveen
naveen - avatar
2 Answers
+ 7
Please use a proper tag for showing programming language. Thanks!
23rd Sep 2020, 11:01 AM
Lothar
Lothar - avatar
0
extension Data { func hexEncodedString() -> String { return map { String(format: "%02hhx", $0) }.joined() } } can any one explain how to use it in swift5
23rd Sep 2020, 11:08 AM
naveen
naveen - avatar