如何将这些数据转换为所需的格式

时间:2014-02-28 05:37:55

标签: ios objective-c xcode encryption ios7

我有这种类型的数据:

unsigned char 

datatoEncrypt[]="89f250de5d82d02e8b444984ecfec20b6456fdd6bcdc9b107b9a5eb339e6e5cf";

我想将其转换为:

   unsigned char finalHexData[]= {0x89,0xf2,0x50,0xde,0x5d,0x82,0xd0,0x2e,0x8b,0x44,0x49,0x84,0xec,0xfe,0xc2,0x0b,0x64,0x56,0xfd,0xd6,0xbc,0xdc,0x9b,0x10,0x7b,0x9a,0x5e,0xb3,0x39,0xe6,0xe5,0xcf}

iOS中是否有任何库函数可以执行此操作?

0 个答案:

没有答案