This is a simple Node.js script that generates an RSA key pair and converts the keys to hexadecimal format.
- Ensure you have Node.js installed on your machine.
- Clone this repository.
To generate an RSA key pair, simply run the script with Node.js:
npm run start
Then, you will find your RSA key pair at output/hex.env
.
node:crypto - The crypto module provides a way of handling encrypted data.
node:fs - The Node.js file system module allows you to work with the file system on your computer.
node:path - The Node.js path module provides utilities for working with file and directory paths.