/** * 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; }