crypto.DEFAULT_ENCODING
Stability: 0 - Deprecated
The default encoding to use for functions that can take either strings
or [buffers][buffer
]. The default value is 'buffer'
, which makes methods
default to [Buffer
][] objects.
The crypto.DEFAULT_ENCODING
mechanism is provided for backwards compatibility
with legacy programs that expect 'latin1'
to be the default encoding.
New applications should expect the default to be 'buffer'
.
This property is deprecated.
Feedback
Was this page helpful?
很高兴听到! 请告诉我们,我们如何才能改善.
很遗憾听到这个消息。 请告诉我们,我们如何才能改善.
最后修改 April 16, 2020: 加密 (a75e592)