Reputation: 239
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
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