Exposing method to derive WorkFactor


In order to determine whether an existing hash used a weak WorkFactor it would be nice if BCrypt (next to providing Verify(...)) provided a method for officially determining the WorkFactor of a hash.

I see this is already in place internally for Verify(...), I'm refactoring this bit so I could be exposed as well. Care if I commit this?


fsateler wrote Aug 7, 2014 at 9:08 PM

Please, this would be very useful