我想加密數據在服務器之間傳遞回來和第四,但我似乎無法得到正確的輸出在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