Dear All,
When I try to encrypt my some data and save into database, i have no problem I can save into database and decrypt and reuse it. But When I try to use that data with the different browser, It gives me error below
mcrypt_generic_init() [<a href=‘function.mcrypt-generic-init’>function.mcrypt-generic-init</a>]: Iv size incorrect; supplied length: 2, needed: 8
Any body has any idea?
This is the format of my usage
$hash = new CSecurityManager();
$xxx->yyy = $hash->encrypt($_POST[‘zzz’]);
…
zzzz = $hash->decrypt($xxxx[‘yyyy’]);
Thanks