rfc:bcrypt_cost_2023
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:bcrypt_cost_2023 [2023/09/07 16:12] – timwolla | rfc:bcrypt_cost_2023 [2023/10/06 14:34] (current) – Implemented timwolla | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2023-09-07 | * Date: 2023-09-07 | ||
* Author: Tim Düsterhus, timwolla@php.net | * Author: Tim Düsterhus, timwolla@php.net | ||
- | * Status: | + | * Status: |
+ | * Target Version: PHP 8.4 | ||
+ | * Implementation: | ||
* First Published at: https:// | * First Published at: https:// | ||
Line 16: | Line 18: | ||
Any increase of the cost by '' | Any increase of the cost by '' | ||
+ | |||
+ | ==== Choice of the cost factor ==== | ||
+ | |||
+ | The cost should be selected to be as large as possible without degrading the user experience and without introducing disproportional hardware requirements. [[https:// | ||
==== Processing time for several different CPUs ==== | ==== Processing time for several different CPUs ==== | ||
- | These times were measured using PHP 8.2 with this script and were selected to represent a reasonable range of CPUs that might still be in use today. All tests were carried out using wall-power. | + | These times were measured using PHP 8.2 with this script and were selected to represent a reasonable range of CPUs that might still be in use today. All tests were carried out using wall-power |
<PHP> | <PHP> | ||
Line 107: | Line 113: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | The default BCrypt cost shall be increased from '' | + | The default BCrypt cost shall be increased from '' |
+ | |||
+ | A cost of '' | ||
+ | |||
+ | The more conservative increase to '' | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 159: | Line 169: | ||
2/3 majority to increase the default costs: | 2/3 majority to increase the default costs: | ||
- | <doodle title=" | + | <doodle title=" |
* Yes | * Yes | ||
* No | * No | ||
Line 166: | Line 176: | ||
Simple majority to decide the new costs: | Simple majority to decide the new costs: | ||
- | <doodle title=" | + | <doodle title=" |
- | * 11 | + | * 11 (less than 160ms per hash) |
- | * 12 | + | * 12 (less than 330ms per hash) |
</ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
- | tbd | + | https:// |
===== Implementation ===== | ===== Implementation ===== | ||
- | tbd | + | https:// |
===== References ===== | ===== References ===== | ||
* https:// | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
===== Rejected Features ===== | ===== Rejected Features ===== | ||
None. | None. |
rfc/bcrypt_cost_2023.1694103137.txt.gz · Last modified: 2023/09/07 16:12 by timwolla