Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/Illuminate/Hashing/BcryptHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,15 @@ public function needsRehash($hashedValue, array $options = array())
return password_needs_rehash($hashedValue, PASSWORD_BCRYPT, array('cost' => $cost));
}

/**
* Set the default crypt cost factor.
*
* @param int $rounds
* @return void
*/
public function setRounds($rounds)
{
$this->rounds = (int) $rounds;
}

}