Open In App

Web technologies Questions | Node.js Quiz | Set-2 | Question 4

Which cipher method is used to return the buffer containing the value of cipher object ?
(A) cipher.last()
(B) cipher.start()
(C) cipher.final()
(D) cipher.update()

Answer: (C)
Explanation: The cipher.final() method is cipher within the crypto module which is used to return the buffer containing the value of the cipher object. It takes encoding as a parameter. and the return value is the object of the buffer containing the cipher value.
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :