Simple command line tools for securely encrypting and decrypting payloads.
- Get the project on your local machine
git clone https://github.com/steakwallet/encrypt-decrypt.git
- Change directory into the project
cd encrypt-decrypt
- Install the necessary dependencies
yarn
- Generate an account, run the command
node generate-account.js
and take note of the corresponding private and public key values
- To encrypt any value,
node encrypt.js "PUBLIC KEY" "PAYLOAD TO ENCRYPT"
- To decrypt any value,
node decrypt.js "PRIVATE KEY" "PAYLOAD TO DECRYPT"