https://github.com/mochafreddo/bcrypt-benchmark
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.
https://github.com/mochafreddo/bcrypt-benchmark
authentication bcrypt benchmark cryptography hashing-algorithm nodejs nodejs-security password-hashing performance-testing security
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/mochafreddo/bcrypt-benchmark
- Owner: mochafreddo
- License: isc
- Created: 2024-03-12T14:56:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-12T15:35:22.000Z (about 1 year ago)
- Last Synced: 2024-03-12T16:46:16.655Z (about 1 year ago)
- Topics: authentication, bcrypt, benchmark, cryptography, hashing-algorithm, nodejs, nodejs-security, password-hashing, performance-testing, security
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bcrypt-benchmark
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.
## Getting Started
To run this project, you need Node.js installed on your machine.
### Installation
1. Clone the repository to your local machine.
2. Navigate to the project directory.
3. Install the dependencies by running:```bash
npm install
```### Usage
Run the benchmark test by executing:
```bash
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.
## Dependencies
- bcrypt: ^5.1.1
See `package.json` for more details.
## Contributing
Feel free to fork the repository and submit pull requests.
## License
This project is licensed under the ISC License. See the LICENSE file for details.