Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Changed the default cost of bcrypt to 10 #5587

Merged
merged 1 commit into from
Dec 5, 2013

Conversation

ezimuel
Copy link
Contributor

@ezimuel ezimuel commented Dec 5, 2013

I changed the default cost of bcrypt to 10 according to prevent potential DOS attacks due to the high computational time of the previous cost value of 14. The security is not compromised with a value of 10, that is the same default value used by password_hash() of PHP 5.5.
See this article for more info about potential DOS attacks on bcrypt: http://timoh6.github.io/2013/11/26/Aggressive-password-stretching.html

@EvanDotPro
Copy link
Member

👍

weierophinney added a commit that referenced this pull request Dec 5, 2013
Changed the default cost of bcrypt to 10
weierophinney added a commit that referenced this pull request Dec 5, 2013
- Added note to the README to ensure that developers are aware of the change.
weierophinney added a commit that referenced this pull request Dec 5, 2013
@weierophinney weierophinney merged commit 666619c into zendframework:develop Dec 5, 2013
@ghost ghost assigned weierophinney Dec 5, 2013
weierophinney added a commit to zendframework/zend-crypt that referenced this pull request May 15, 2015
…bcrypt-cost-10

Changed the default cost of bcrypt to 10
weierophinney added a commit to zendframework/zend-crypt that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants