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.


最后修改 April 16, 2020: 加密 (a75e592)