The ncrypto library extracts the base internal implementation of Node.js crypto operations
that support both node:crypto and Web Crypto implementations and makes them available for
use in other projects that need to emulate Node.js’ behavior.
Compatibility
Build systems: ncrypto can be built with either Bazel or CMake.
SSL libraries: ncrypto supports linking to either boringssl or openssl.
Build flags
Bazel: --@ncrypto//:bssl_libdecrepit_missing=True
CMake: -DNCRYPTO_BSSL_LIBDECREPIT_MISSING=1
If linking against boringssl, libdecrepit is an optional component that isn’t always built. If
this option is set, ncrypto will use a built-in replacement for the missing functions.
Node.js crypto (ncrypto) library
The
ncryptolibrary extracts the base internal implementation of Node.js crypto operations that support bothnode:cryptoand Web Crypto implementations and makes them available for use in other projects that need to emulate Node.js’ behavior.Compatibility
ncryptocan be built with either Bazel or CMake.ncryptosupports linking to eitherboringssloropenssl.Build flags
--@ncrypto//:bssl_libdecrepit_missing=True-DNCRYPTO_BSSL_LIBDECREPIT_MISSING=1If linking against
boringssl, libdecrepit is an optional component that isn’t always built. If this option is set,ncryptowill use a built-in replacement for the missing functions.