Skip to content


Subversion checkout URL

You can clone with
Download ZIP


should crypto::decipher.update add 'hex' output encoding option? #3986

yi opened this Issue · 2 comments

3 participants

yi commented

cipher.update and can output in 'hex' encoding, this add a lot ease when convert encryption results into buffer.

But decipher.update and don't support 'hex' encoding. When use decipher to decrypt a buffer into a result buffer. The currently way is use its default 'binary' output, and convert the output string into buffer by the Buffer's 'binary' encoding.

But 'binary' encoding of Buffer is deprecated, and should avoid use as possible.

Thus, I suggest to add 'hex' output encoding option into decipher.update and


Because of backward compatibility, there should be a new pseudo-encoding "buffer" for methods like hash#digest(), hmac#digest(), hmac#digest(), cipher#final() which should output real Buffer object.


hex is now supported.

@trevnorris trevnorris closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.