decipher.final([outputEncoding])


返回任何剩余的解密内容。如果outputEncoding参数是'latin1','ascii'或'utf8'之一,则返回一个字符串。 如果未提供输出编码,则返回Buffer

一旦调用了decipher.final()方法,Decipher对象就不能再用于解密数据。 试图不止一次调用decipher.final()会导致错误被抛出。

  • outputEncoding <string> The encoding of the return value.
  • Returns: <Buffer> | <string> Any remaining deciphered contents. If outputEncoding is specified, a string is returned. If an outputEncoding is not provided, a Buffer is returned.

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