-
Notifications
You must be signed in to change notification settings - Fork 14
Description
In CouchDB the default pbkdf2 iterations is set to 10, which is insanely low. For reference, in 2000 when the pbkdf2 RFC was release, the recommended iterations was 1,000; 20 years ago, with the suggestion that it be increased as CPU speeds increase. As such a 10,000+ iterable count is probably more sensible.
A closed issue on the CouchDB Github appears to address this issue however it was closed before (as far as I can tell) it was properly fixed.
Lastly the upstream CouchDB docs seem to suggest that the default IS 10,000 however, at the very least this appears to NOT be the case in the Debian package. Perhaps the docs correspond with a newer version than the latest Debian package?
This PR, along with updating to 16.0 increase the default and minimum PBKDF2 iterations to 1,000 however it's probably worth increasing this.
References:
- RFC https://tools.ietf.org/html/rfc2898#section-4.2
- Wikipedia article https://en.wikipedia.org/wiki/PBKDF2