Prateek sharma
Prateek sharma

Reputation: 239

AES256 Encryption with CBC and without padding in Objective-c

I have to do the encryption with AES 256 , CBC and without padding . I have an code which do simple AES256 but requirement is different .

I have an JSON string which i need to pass to the server with AES256/CBC/Nopadding.

Any Help will be appreciated

Upvotes: 4

Views: 1055

Answers (1)

Nickolay Olshevsky
Nickolay Olshevsky

Reputation: 14160

You can use CommonCrypto to achieve this. In CCCryptorCreate there is CCOptions parameter, where you should pass 0 (instead of PKCS7Padding constant).

Upvotes: 1

Related Questions