I have a objc function like below
-(char *)decrypt:(char *)crypt el:(int)el{}
when I call this function from swift it returns UnsafeMutablePointer<Int8>
. Now I need to get the data from this pointer. The output should be a string like this
"5c9f2cb88787fff26ca8a57982604460201805111017510011111111"
I have tried below code to retrieve the value
String(validatingUTF8: pointer)
But it returns nil.
How do I get the value from this UnsafeMutablePointer<Int8>?