Skip to main content

final

method Cipher.prototype.final
Jump to headingCipher.prototype.final(): Buffer

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.

Return Type Jump to heading

Buffer

Any remaining enciphered contents. If outputEncoding is specified, a string is returned. If an outputEncoding is not provided, a Buffer is returned.

Jump to headingCipher.prototype.final(outputEncoding: BufferEncoding): string

Parameters Jump to heading

Jump to headingoutputEncoding: BufferEncoding

Return Type Jump to heading

string
Back to top