dcodeIO / bcrypt.js

Optimized bcrypt in plain JavaScript with zero dependencies.
Other
3.51k stars 267 forks source link

progress callback #10

Closed cmcnulty closed 10 years ago

cmcnulty commented 10 years ago

Feature request for a progress callback, preferably one that binds the counter as an argument to the callback.

dcodeIO commented 10 years ago

An additional parameter progressCallback is now available with bcrypt.hash and bcrypt.compare. If specified, it is called with the percentage of rounds completed (0.0 - 1.0) as its sole argument, max. once per MAX_EXECUTION_TIME = 100 ms.

cmcnulty commented 10 years ago

That's what I call service! Whatever I was paying you before, I'm going to double it!