I want to implement php\'s openssl_encrypt() method in iOS Objective-C. Therefore I tried this code:
openssl_encrypt()
#import
decodedKeyData is 32 bytes )(256-bits) but the key size is specified as kCCKeySizeAES192.
decodedKeyData
kCCKeySizeAES192
Just use randomBytes as the IV, there is no point in converting it is Base64 and back.
randomBytes