public function hash($input) {
		$hash = crypt($input, $this->getSalt());

		if (Utils::binaryStrlen($hash) != $this->getResultLength()) {
			throw new HashException("Error while generating Hash");
		}

		return $hash;
	}