Skip to content

BragdonD/secret-password-node-cli

Repository files navigation

Secret Password Hashing

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.

Prerequisites

Make sure you have the following software installed on your system:

Installation

git clone https://github.com/your-username/secret-password-hashing.git
cd secret-password-hashing
pnpm install

Usage

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.

Contributing

Contributions to this project are not currently accepted. This repository is intended as a simple demonstration and does not require any community involvement.

License

This project is licensed under the MIT License. Feel free to modify and use the code as per the license terms.

About

A simple password prompt which hide the user's input

Topics

Resources

License

Stars

Watchers

Forks