crypto.DEFAULT_ENCODING
稳定性: 0 - 已弃用
默认编码用于可以接受字符串或 缓冲区 的函数。默认值是 '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.