AES256 encryption with and without CBC in Objective-c

I need to do encryption with AES 256, CBC and no add-on. I have code that makes AES256 simple, but the requirement is different.

I have a JSON string that I need to pass to the server using AES256 / CBC / Nopadding.

Any help would be appreciated

+4
source share
1 answer

You can use CommonCrypto to achieve this. CCCryptorCreate has the CCOptions parameter, where you must pass 0 (instead of the PKCS7Padding constant).

+1
source

Source: https://habr.com/ru/post/1501776/


All Articles