cipher.final()

cipher.final([output_encoding])

Returns any remaining enciphered contents. If output_encoding parameter is one of 'binary', 'base64' or 'hex', a string is returned. If an output_encoding is not provided, a Buffer is returned.

Once the cipher.final() method has been called, the Cipher object can no longer be used to encrypt data. Attempts to call cipher.final() more than once will result in an error being thrown.

doc_Nodejs
2016-04-30 04:38:05
Comments
Leave a Comment

Please login to continue.