Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Calculate the md5 hash of a string
<?php md5(string $string, bool $binary = false): string
<?php         return $this

            ->fluentlyGetOrSet('taxonomies')

            ->getter(function ($taxonomies) {

                $key = "collection-{$this->id()}-taxonomies-".md5(json_encode($taxonomies));



                return Blink::once($key, function () use ($taxonomies) {

                    return collect($taxonomies)->map(function ($taxonomy) {
<?php     public function gravatar($email, $size = null)

    {

        $url = 'https://www.gravatar.com/avatar/'.e(md5(strtolower($email)));



        if ($size) {

            $url .= '?s='.$size;
<?php     private function getImportedFields(array $config): array

    {

        $blink = 'blueprint-imported-fields-'.md5(json_encode($config));



        return Blink::once($blink, function () use ($config) {

            if (! $fieldset = FieldsetRepository::find($config['import'])) {
<?php         $query = $request->input('query');

        $vars = $request->input('variables');



        return 'gql-cache:'.md5($query).'_'.md5(json_encode($vars));

    }



    public function handleInvalidationEvent(Event $event)
<?php             return $this->mutex;

        }



        return $this->mutex = 'imagegenerator::generating.'.md5($this->asset->id().$this->size);

    }
<?php     {

        $endpoint = collect([$this->domain, self::API_PREFIX, $endpoint])->implode('/');



        $key = 'marketplace-'.md5($endpoint.json_encode($params));



        return Cache::rememberWithExpiration($key, function () use ($endpoint, $params) {

            $response = Guzzle::request('GET', $endpoint, [
<?php     public function md5($value)

    {

        return md5($value);

    }
<?php     protected function makeHash($url)

    {

        return md5($url);

    }
<?php         $query = $this->config('ignore_query_strings') ? '' : Arr::get($urlParts, 'query', '');



        if ($this->isBasenameTooLong($basename = $slug.'_'.$query.'.html')) {

            $basename = $slug.'_lqs_'.md5($query).'.html';

        }



        return $this->getCachePath().$pathParts['dirname'].'/'.$basename;
<?php     {

        return $this->fluentlyGetOrSet('tree')

            ->getter(function ($tree) {

                $key = "structure-{$this->handle()}-{$this->locale()}-".md5(json_encode($tree));



                return Blink::once($key, function () use ($tree) {

                    return $this->structure()->validateTree($tree, $this->locale());
<?php             $hash['url'] = URL::makeAbsolute(URL::getCurrent());

        }



        return 'statamic.cache-tag.'.md5(json_encode($hash));

    }



    private function getCacheLength()
<?php         $hash = md5(implode(',', $this->params->all()));



        if (! isset(static::$counts[$hash])) {

            static::$counts[$hash] = 0;
<?php         while ($this->preg_match("/('[^']+'|\"[^\"]+\")/", $condition, $replacement_matches)) {

            $replacement_match = $replacement_matches[1];

            $replacement_hash = md5($replacement_match);



            $replacements[$replacement_hash] = $replacement_match;

            $condition = str_replace($replacement_match, '__temp_replacement_'.$replacement_hash, $condition);
<?php                 $next_tag = ($count == $child_count) ? '' : md5($tag.$replacement);



                $text = str_replace($current_tag, $replacement.$next_tag, $text);
<?php     protected function createExtraction($type, $extraction, $replacement, $text)

    {

        $hash = md5($replacement);

        $this->extractions[$type][$hash] = $replacement;



        return str_replace($extraction, "{$type}_{$hash}", $text);