cipher.final([outputEncoding])
outputEncoding<string> 返回值的 编码。- 返回值:<Buffer> | <string> 任何剩余的加密内容。如果指定了
outputEncoding,则返回一个字符串。如果未提供outputEncoding,则返回一个Buffer。
一旦调用了 cipher.final() 方法,Cipheriv 对象将无法再用来加密数据。多次调用 cipher.final() 将会导致抛出错误。
【Once the cipher.final() method has been called, the Cipheriv object can no
longer be used to encrypt data. Attempts to call cipher.final() more than
once will result in an error being thrown.】