encryption - PHP AES encrypt / decrypt - Stack Overflow
For information MCRYPT_MODE_ECB doesn't use the IV (initialization vector). ECB mode divide your message into blocks and each block is encrypted separately. I really don't recommended it. CBC mode use the IV to make each message unique. CBC is ......