@@ -601,7 +601,7 @@ called. Multiple calls will cause an error to be thrown.
601
601
Updates the hash content with the given ` data ` , the encoding of which
602
602
is given in ` input_encoding ` and can be ` 'utf8' ` , ` 'ascii' ` or
603
603
` 'binary' ` . If ` encoding ` is not provided, and the ` data ` is a string, an
604
- encoding of ` 'binary' ` is enforced . If ` data ` is a [ ` Buffer ` ] [ ] then
604
+ encoding of ` 'binary' ` is implied . If ` data ` is a [ ` Buffer ` ] [ ] then
605
605
` input_encoding ` is ignored.
606
606
607
607
This can be called many times with new data as it is streamed.
@@ -674,7 +674,7 @@ called. Multiple calls to `hmac.digest()` will result in an error being thrown.
674
674
Updates the ` Hmac ` content with the given ` data ` , the encoding of which
675
675
is given in ` input_encoding ` and can be ` 'utf8' ` , ` 'ascii' ` or
676
676
` 'binary' ` . If ` encoding ` is not provided, and the ` data ` is a string, an
677
- encoding of ` 'utf8 ' ` is enforced . If ` data ` is a [ ` Buffer ` ] [ ] then
677
+ encoding of ` 'binary ' ` is implied . If ` data ` is a [ ` Buffer ` ] [ ] then
678
678
` input_encoding ` is ignored.
679
679
680
680
This can be called many times with new data as it is streamed.
@@ -765,7 +765,7 @@ called. Multiple calls to `sign.sign()` will result in an error being thrown.
765
765
Updates the ` Sign ` content with the given ` data ` , the encoding of which
766
766
is given in ` input_encoding ` and can be ` 'utf8' ` , ` 'ascii' ` or
767
767
` 'binary' ` . If ` encoding ` is not provided, and the ` data ` is a string, an
768
- encoding of ` 'utf8 ' ` is enforced . If ` data ` is a [ ` Buffer ` ] [ ] then
768
+ encoding of ` 'binary ' ` is implied . If ` data ` is a [ ` Buffer ` ] [ ] then
769
769
` input_encoding ` is ignored.
770
770
771
771
This can be called many times with new data as it is streamed.
@@ -817,7 +817,7 @@ console.log(verify.verify(public_key, signature));
817
817
Updates the ` Verify ` content with the given ` data ` , the encoding of which
818
818
is given in ` input_encoding ` and can be ` 'utf8' ` , ` 'ascii' ` or
819
819
` 'binary' ` . If ` encoding ` is not provided, and the ` data ` is a string, an
820
- encoding of ` 'utf8 ' ` is enforced . If ` data ` is a [ ` Buffer ` ] [ ] then
820
+ encoding of ` 'binary ' ` is implied . If ` data ` is a [ ` Buffer ` ] [ ] then
821
821
` input_encoding ` is ignored.
822
822
823
823
This can be called many times with new data as it is streamed.
@@ -848,7 +848,7 @@ or [buffers][`Buffer`]. The default value is `'buffer'`, which makes methods
848
848
default to [ ` Buffer ` ] [ ] objects.
849
849
850
850
The ` crypto.DEFAULT_ENCODING ` mechanism is provided for backwards compatibility
851
- with legacy programs that expect ` 'binary ' ` to be the default encoding.
851
+ with legacy programs that expect ` 'utf8 ' ` to be the default encoding.
852
852
853
853
New applications should expect the default to be ` 'buffer' ` . This property may
854
854
become deprecated in a future Node.js release.
0 commit comments