decipher.update(data[, input_encoding][, output_encoding])
Updates the decipher with data
. If the input_encoding
argument is given, it's value must be one of 'binary'
, 'base64'
, or 'hex'
and the data
argument is a string using the specified encoding. If the input_encoding
argument is not given, data
must be a Buffer
. If data
is a Buffer
then input_encoding
is ignored.
The output_encoding
specifies the output format of the enciphered data, and can be 'binary'
, 'ascii'
or 'utf8'
. If the output_encoding
is specified, a string using the specified encoding is returned. If no output_encoding
is provided, a Buffer
is returned.
The decipher.update()
method can be called multiple times with new data until decipher.final()
is called. Calling decipher.update()
after decipher.final()
will result in an error being thrown.
Please login to continue.