crypto.DEFAULT_ENCODING
稳定性: 0 - 已弃用
¥Stability: 0 - Deprecated
用于可以采用字符串或 buffers 的函数的默认编码。默认值为 'buffer'
,这使得方法默认为 Buffer
对象。
¥The default encoding to use for functions that can take either strings
or buffers. The default value is 'buffer'
, which makes methods
default to Buffer
objects.
提供 crypto.DEFAULT_ENCODING
机制是为了与期望 'latin1'
为默认编码的旧版程序向后兼容。
¥The crypto.DEFAULT_ENCODING
mechanism is provided for backward compatibility
with legacy programs that expect 'latin1'
to be the default encoding.
新应用应期望默认值为 'buffer'
。
¥New applications should expect the default to be 'buffer'
.
此属性已弃用。
¥This property is deprecated.