예제 #1
0
 /**
  * Method sets maximum allowed log2 number of iterations for password stretching.
  *
  * @param int $maxHashCount Maximum allowed log2 number of iterations for password stretching to set
  * @see MAX_HASH_COUNT
  * @see $maxHashCount
  * @see getMaxHashCount()
  */
 public function setMaxHashCount($maxHashCount = NULL)
 {
     self::$maxHashCount = !is_NULL($maxHashCount) && is_int($maxHashCount) ? $maxHashCount : self::MAX_HASH_COUNT;
 }
예제 #2
0
 /**
  * Method sets maximum allowed log2 number of iterations for password stretching.
  *
  * @param int $maxHashCount Maximum allowed log2 number of iterations for password stretching to set
  * @see MAX_HASH_COUNT
  * @see $maxHashCount
  * @see getMaxHashCount()
  */
 public function setMaxHashCount($maxHashCount = null)
 {
     self::$maxHashCount = !is_null($maxHashCount) && is_int($maxHashCount) ? $maxHashCount : self::MAX_HASH_COUNT;
 }