diff options
author | Mathias Bynens <mathias@qiwi.be> | 2013-12-11 20:39:22 -0800 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-12-11 20:39:22 -0800 |
commit | f89a7185b7fb51fdbaf117f443bdc78925b44e50 (patch) | |
tree | 1b9221b97ed4219b224eab0ac5fdb1d8380a37f7 /doc/api | |
parent | 04d52270b6a71256a89c20b8994c9de8d3bca532 (diff) | |
download | node-f89a7185b7fb51fdbaf117f443bdc78925b44e50.tar.gz |
doc: mention `binary` as deafult for Hash strings
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/crypto.markdown | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 1aba68ee3..8dd9b7c41 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -100,8 +100,9 @@ Returned by `crypto.createHash`. Updates the hash content with the given `data`, the encoding of which is given in `input_encoding` and can be `'utf8'`, `'ascii'` or -`'binary'`. If no encoding is provided, then a buffer is expected. -If `data` is a `Buffer` then `input_encoding` is ignored. +`'binary'`. If no encoding is provided and the input is a string an +encoding of `'binary'` is enforced. If `data` is a `Buffer` then +`input_encoding` is ignored. This can be called many times with new data as it is streamed. |