This is a simple Node.js script that demonstrates how to securely ask a user in the console with readline-sync and then use this input as a password.
Make sure you have the following software installed on your system:
- Node.js: https://nodejs.org
- pnpm
git clone https://github.com/your-username/secret-password-hashing.git
cd secret-password-hashing
pnpm install
pnpm run prepare
pnpm run generate
Follow the prompts and enter your desired password when prompted. The script will securely hash the password using bcrypt and display the resulting hashed password in the console.
Contributions to this project are not currently accepted. This repository is intended as a simple demonstration and does not require any community involvement.
This project is licensed under the MIT License. Feel free to modify and use the code as per the license terms.