Пример #1
0
 /**
  * We want to crypt a password =)
  *
  * @param $password
  *
  * @return string
  */
 protected function bCrypt($password)
 {
     if ($this->isSamePasswordOption()) {
         $result = $this->gameDataService->hashPassword($password);
     } else {
         $bCrypt = new Bcrypt();
         $result = $bCrypt->create($password);
     }
     return $result;
 }