• outputEncoding <string> 返回值的字符编码
  • 返回: <Buffer> | <string> 任何剩余的解密内容。如果指定了 outputEncoding,则返回一个字符串。如果未提供 outputEncoding,则返回 Buffer

一旦调用了 方法,则 Decipher 对象就不能再用于解密数据。 如果试图多次调用,则将会导致抛出错误。

  • 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 method has been called, the Decipher object can no longer be used to decrypt data. Attempts to call more than once will result in an error being thrown.