use nodejs crypto module

Use the builtin crypto module instead of depending on other packages.