borisyankov/DefinitelyTyped — pull request #2925 by jjeffery (2014-10-04 23:49:43+00:00)
Title: Crypto buffer api

Modify definitions for crypto.Cipher and crypto.Decipher. Methods #update and #final return a Buffer when no encoding is specified, and return a string when encoding is specified.

See http://nodejs.org/api/crypto.html#crypto_class_cipher and http://nodejs.org/api/crypto.html#crypto_class_decipher for details.