oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.46k stars 2.71k forks source link

Specify number of hash rounds in `Bun.password` #7156

Open Anas-Maher opened 10 months ago

Anas-Maher commented 10 months ago

What is the problem this feature would solve?

so when i use Bun hashing , i don't get the option to choose the rounds for example in bcrypt it's stuck at 10 round

What is the feature you are proposing to solve the problem?

you can give us a third optional argument for rounds and set it to 10 by default

What alternatives have you considered?

you could use external libraries but i like that every thing i need i mostly built in and i don't need to download any external libraries

Anas-Maher commented 10 months ago

Bun.password.hash future