objective c - Decrypt p7s file on iOS -
working on test ios
app have faced following problem.
from remote webserver recieve .p7s
file following contents (which viewable in mac's textedit
app):
0Ä *Ühܘ †Ä0Ä10 +�0Ä *Ühܘ †Ä$ÄÇ˚<?xml version="1.0" encoding="utf-8"?> <!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict> <key>challenge</key> <string>panacya</string> <key>imei</key> <string>01 232700 828513 5</string> <key>product</key> <string>ipad1,1</string> <key>serial</key> <string>gb0269njetu</string> <key>udid</key> <string>2866681d94ae6c56d189485d39c54eaedecf211c</string> <key>version</key> <string>9a5288d</string> </dict> </plist> ������†Ç [0ÇÛ0Ç\† u6ÜΩ~60 *Ühܘ �0z10 uus10u apple inc.10uapple iphone10uapple iphone device ca0 110808222517z 140808222517z0ÅÉ1-0+u$2890c19c-43f9-47c5-8534-a54f184e37dc10 uus10 uca10u cupertino10u
here's link original file - https://www.dropbox.com/s/lm05gg866zdrz20/ota-response.p7s?dl=0
i save nsdata
.p7s
file disk.
i need embedded .plist
out of file (judging see contains that) or @ least convert readable nsstring
can display in uilabel
.
is @ possible , how achieve it?
you can read nsdata
instnace , use
- (nsrange)rangeofdata:(nsdata *)datatofind options:(nsdatasearchoptions)mask range:(nsrange)searchrange
to find beginning , end of plist. use
- (nsdata *)subdatawithrange:(nsrange)range
to optain plist data. convert nsstring
with:
- (instancetype)initwithdata:(nsdata *)data encoding:(nsstringencoding)encoding
Comments
Post a Comment