How to encrypt in nodejs via AES-256-CBC to be consistent with openssl
I used to encrypt text in nodejs by invoking openssl via execSync, but it’s a bad practice, because it could leak password to system logs. Now I want to use the crypto
library, but I get inconsistent results.