我想加密数据在服务器之间传递回来和第四,但我似乎无法得到正确的输出在objective-c :(完整的代码在这里:http://pastebin.com/zPdHxShu)AES128 iphone加密匹配,直到最后
// 128-bit key, CBC mode
// ------------------------
// IV = '123456789'
// (hex: 31323334353637383930313233343536)
// Key = '123456789'
// (hex: 31323334353637383930313233343536)
// PlainText:
// 'The quick brown fox jumped over the lazy dog'
// CipherText(hex):
// f78176ae 8dfe8457 8529208d 30f446bb b29a64dc 388b5c0b 63140a4f 316b3f34 1fe7d3b1 a3cc5113 c81ef8dd 714a1c99 // correct output
// f78176ae 8dfe8457 8529208d 30f446bb b29a64dc 388b5c0b 63140a4f 316b3f34 50f18175 f7a3ad06 2d8033cc d092ca6a // my output
// ^^^ start to get different output here
// Note: I get this output in php no problem.
:(你的引擎收录代码不见了将是巨大的,如果它可以访问 – AriX 2011-02-06 23:51:51