Use phpsecRand::bytes() instead of mcrypt_create_iv() to create initialization vector for the Mcrypt library. The mcrypt_create_iv() is known to be slow, as staed by comments on http://no.php.net/manual/en/function.mcrypt-create-iv.php
Use phpsecRand::bytes() instead of mcrypt_create_iv() to create
initialization vector for the Mcrypt library. The mcrypt_create_iv()
is known to be slow, as staed by comments
on http://no.php.net/manual/en/function.mcrypt-create-iv.php
phpsec/phpSec,interpotential/phpSec