Which of the following is used to encrypt data in Node.js?
A) crypto.createCipher()
B) crypto.encrypt()
C) crypto.hash()
D) crypto.encode()