Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
doc: mention binary as deafult for Hash strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens authored and tjfontaine committed Dec 12, 2013
1 parent 04d5227 commit f89a718
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/api/crypto.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit f89a718

Please sign in to comment.