4 comments

  • kentonv 2 hours ago

    Sorry, this is a bug.

    It dates back to when Workers only supported 50ms CPU time limits. Back then 100k iterations was enough to exceed the 50ms budget.

    Now that the limit is 5 minutes this is pretty silly, but since PBKDF2 is considered obsolete and not often used in new code, I guess fixing it never really came up.

    I would accept a PR to increase the constant to 1M, or higher with a good argument (but most recommendations I see for iteration count are <1M). Constant defined here:

    https://github.com/cloudflare/workerd/blob/main/src/workerd/...

  • Ajjayaade 2 hours ago

    [flagged]