This project is designed to benchmark the performance of bcrypt hashing at different salt rounds. It helps in determining the optimal number of rounds for hashing passwords, balancing security and performance.
To run this project, you need Node.js installed on your machine.
- Clone the repository to your local machine.
- Navigate to the project directory.
- Install the dependencies by running:
npm install
Run the benchmark test by executing:
node bcrypt-benchmark.js
The script will test bcrypt hashing from 8 to 16 rounds and log the duration for each round to the console.
- bcrypt: ^5.1.1
See package.json
for more details.
Feel free to fork the repository and submit pull requests.
This project is licensed under the ISC License. See the LICENSE file for details.