Calculates a hash value representing the entity.
@return string
342675
public function calculateHash(): string
    {
        return EntityUtils::calculateHashOfArray([
            $this->type,
            $this->name,
            $this->amountMin,
            $this->amountMax,
            $this->probability,
            $this->order,
        ]);
    }
1322384
public function calculateHash()
    {
        // this is the documentation way
        $raw = file_get_contents('php://input');
        $fields = substr($raw, 0, strpos($raw, '&key='));
        $secret = $this->request->getSecret();
        $supposed_hash = md5($fields . $secret);

        // this is how they actually get it
        $kvs = '';
        foreach ($this->data as $k => $v) {
            if ($k !== 'key' && $k !== 'username') {
                $kvs .= ($kvs ? '&' : '') . "$k=$v";
            }
        }
        $hash = md5($kvs);

        /* Testing facility
        dlog([
            'key'    => $this->getHash(),
            'fields' => $fields,
            'kvs'    => $kvs,
            'secret' => $secret,
            'hash'   => $hash,
            'h2'     => md5($fields),
            'h3'     => md5($fields . $secret),
            'kh3'    => md5($kvs),
            'kh4'    => md5($kvs . $secret),
        ]); */

        /// tmp fix
        return $this->getHash();
        //return $hash;
    }
203322
private function generateInitialHash()
    {
        $mergedString = $this->isLive . $this->transaction['orderId'] . $this->transaction['invoiceNumber'] .
            $this->transaction['amount'] . $this->customer['telephoneNumber'] . $this->customer['email'] .
            $this->vendorId . $this->currency . $this->payloads['payload1'] . $this->payloads['payload2'] .
            $this->payloads['payload3'] . $this->payloads['payload4'] . $this->callback .
            $this->customer['sendEmail'] . $this->callbackMode;

        return hash_hmac('sha1', $mergedString, $this->hashKey);
    }
1158762
public function getHash()
    {
        return md5(
            implode('', $this->scripts)
            . implode('', $this->files)
            . $this->mode
            . $this->warningLevel
            . $this->getFormattingOptions()->getPrettyPrintEnabled()
            . $this->getFormattingOptions()->getPrintInputDelimiterEnabled()
        );
    }
818207
protected function get_settings_hash() {
        if (empty($this->settingshash)) {
            $this->settingshash = md5($this->dbhost . $this->dbuser . $this->dbname . $this->prefix);
        }
        return $this->settingshash;
    }
1048404
public function getSessionStrategyHash()
	{
		$ret = $this->getChecksum();

		if ( $this->isShared() ) {
			$ret .= '::' . get_class($this->getTestCase());
		}

		return $ret;
	}
658034
public function getHashCode() {
		if ($this->_isSupervisor) {
			return $this->getSharedComponent()->getHashCode();
		}
		return md5(
			  $this->_argb
			. __CLASS__
		);
	}
314424
public function hashCode()
    {
        $validPk = null !== $this->getMediaId() &&
            null !== $this->getPageId();

        $validPrimaryKeyFKs = 2;
        $primaryKeyFKs = [];

        //relation m2p_fk_32dfd1 to table media
        if ($this->aMedia && $hash = spl_object_hash($this->aMedia)) {
            $primaryKeyFKs[] = $hash;
        } else {
            $validPrimaryKeyFKs = false;
        }

        //relation m2p_fk_c9a38a to table page
        if ($this->aPage && $hash = spl_object_hash($this->aPage)) {
            $primaryKeyFKs[] = $hash;
        } else {
            $validPrimaryKeyFKs = false;
        }

        if ($validPk) {
            return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE));
        } elseif ($validPrimaryKeyFKs) {
            return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE));
        }

        return spl_object_hash($this);
    }
1074859
protected function getParameterHash()
    {
        $parts = array(
            $this->repo->getName(),
            serialize((array) $this->limit),
            serialize((array) $this->orderBy),
            serialize((array) $this->predicate),
        );

        return md5(implode('|', $parts));
    }
791792
public function getHash()
	{
		if (is_null($this->hash)) {
			$this->hash = sha1_file($this->path);
		}
		return $this->hash;
	}
131050
public function calculateHash(): string
    {
        return EntityUtils::calculateHashOfArray([
            $this->type,
            $this->name,
            $this->labels->calculateHash(),
            $this->descriptions->calculateHash(),
            $this->providesRecipeLocalisation,
            $this->providesMachineLocalisation,
            $this->iconHash,
            $this->isNew,
        ]);
    }
531484
function get_hash()
    {
        $prefs = $this->get_prefs();

        // generate a random hash and store it in user prefs
        if (empty($prefs['client_hash'])) {
            $prefs['client_hash'] = rcube_utils::random_bytes(16);
            $this->save_prefs(array('client_hash' => $prefs['client_hash']));
        }

        return $prefs['client_hash'];
    }
1057599
public function getHash(): string
    {
        $init = $this->pos;
        \fseek($this->fp, 0, SEEK_SET);

        // Create a hash context:
        $h = \sodium_crypto_generichash_init(
            $this->hashKey,
            \SODIUM_CRYPTO_GENERICHASH_BYTES_MAX
        );
        for ($i = 0; $i < $this->stat['size']; $i += self::CHUNK) {
            if (($i + self::CHUNK) > $this->stat['size']) {
                $c = \fread($this->fp, ((int) $this->stat['size'] - $i));
            } else {
                $c = \fread($this->fp, self::CHUNK);
            }
            if (!\is_string($c)) {
                // @codeCoverageIgnoreStart
                throw new FileError('Could not read file');
                // @codeCoverageIgnoreEnd
            }
            \sodium_crypto_generichash_update($h, $c);
        }
        // Reset the file pointer's internal cursor to where it was:
        \fseek($this->fp, $init, SEEK_SET);
        return \sodium_crypto_generichash_final($h);
    }
723439
public function getHashCode() {
    	return md5(
    		  $this->_renderingFunction
    		. $this->_mimeType
    		. $this->_uniqueName
    		. parent::getHashCode()
    		. __CLASS__
    	);
    }
700147
public function calculateHash(): string
    {
        return EntityUtils::calculateHashOfArray([
            $this->name,
            $this->mode,
            array_map(function (Ingredient $ingredient): string {
                return $ingredient->calculateHash();
            }, $this->ingredients),
            array_map(function (Product $product): string {
                return $product->calculateHash();
            }, $this->products),
            $this->craftingTime,
            $this->craftingCategory,
            $this->labels->calculateHash(),
            $this->descriptions->calculateHash(),
            $this->iconHash,
        ]);
    }
230131
public function calculateHash(): string
    {
        return EntityUtils::calculateHashOfArray([
            $this->type,
            $this->name,
            $this->amount,
            $this->order,
        ]);
    }
612551
protected function getDataVersionHash()
    {
        $filter = $this->getPropertyFilter();
        $properties = $filter->getProperties();
        sort($properties);
        
        return sha1(
            static::class . '|' .
            static::VERSION . '|' .
            get_class($filter) . '|' .
            implode(',', $properties)
        );
    }