Encrypt in nodejs and decrypt in php or vice versa

If you are trying to encrypt in php and decrypt in nodejs or vice versa, first thing you need to know is only mcrypt_rijndel_128 is identical with aes-128-cbc. So you must use mcrypt_rijndel_128 for php and aes-128-cbc for nodejs. Crypto module for nodejs provides wide verity of encryption/decryption algorithm. The other thing you should know […]