rocwong-cn / react-native-aes-kit

AES-CBC-PKCS5Padding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Encryption result in ios and android different

deceive3w opened this issue · comments

i solved by changing algorithm aes 128 to 256 in module ios

i solved by changing algorithm aes 128 to 256 in module ios

Please @deceive3w How did you do that?

you have to replace some variables in your NSData+AES.m in module ios like this
kCCKeySizeAES128 --> kCCKeySizeAES256
kCCAlgorithmAES128 --> kCCAlgorithmAES
and the variable below keyPtr --> 32
and with these changes you will have same encryption and decryption result on both ios and android