Object encryption and decryption for Node.js