I want to generate random IV in iOS which is base on the below code:
mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND);
Is anybody can tell me how to generate random IV in iOS same with the above php? Thank you.