Get the encryption and authentication keys from cookie
@param string $name
@return string
339544
protected function getKey($name) {

        if(false === isset($_COOKIE[$name]) || '' === $_COOKIE[$name]) {

            $key 		 = static :: random_bytes(64); //32 for encryption and 32 for authentication
            $cookieParam = session_get_cookie_params();

            setcookie($name, base64_encode($key), ($cookieParam['lifetime'] > 0) ? time() + $cookieParam['lifetime'] : 0, $cookieParam['path'], $cookieParam['domain'], $cookieParam['secure'], $cookieParam['httponly']);
        }
        else {
            $key = base64_decode($_COOKIE[$name]);
        }

        return $key;
    }
658111
protected function getCookieMatchingName($name)
    {
        if ($this->configCookiesDisabled) {
            return false;
        }
        if (!is_array($_COOKIE)) {
            return false;
        }
        $name = $this->getCookieName($name);

        // Piwik cookie names use dots separators in piwik.js,
        // but PHP Replaces . with _ http://www.php.net/manual/en/language.variables.predefined.php#72571
        $name = str_replace('.', '_', $name);
        foreach ($_COOKIE as $cookieName => $cookieValue) {
            if (strpos($cookieName, $name) !== false) {
                return $cookieValue;
            }
        }

        return false;
    }
826968
public function cookie(string $name): string {
        if (!isset($this->cookies[$name])) {
            return "";
        }
        return $this->cookies[$name];
    }
1367470
protected function getCookieStr($name)
    {
        return \PHPDaemon\HTTPRequest\Generic::getString($this->attrs->cookie[$name]);
    }
152561
protected function getForeignKey($name)
    {
        if (strpos($name, '\\')) {
            $name = basename(str_replace('\\', '/', $name));
        }

        return Db::parseName($name) . '_id';
    }
834097
public function getCookieParam($name)
    {
        return isset($this->cookies[$name]) ? $this->cookies[$name] : false;
    }
990680
public function getRaw(string $name): array
    {
        if (strtolower($name) === 'cache-control') {
            return $this->getCacheControlDirectives();
        }

        if (strtolower($name) === 'set-cookie') {
            $cookies = $this->fields['Set-Cookie'] ?? [];
            foreach ($this->cookies as $cookie) {
                $cookies[] = (string)$cookie;
            }

            return $cookies;
        }
        if (!isset($this->fields[$name])) {
            return [];
        }

        return $this->fields[$name];
    }
1254826
public function getCookie($name = '')
    {
        if (isset(CookieContainer::getCookies()[$name])) {
            return CookieContainer::getCookies()[$name];
        } else {
            return false;
        }
    }
520815
public function getValue($name)
    {
        $cookie = $this->get($name);

        return null === $cookie ? null : $cookie->getValue();
    }
168393
public static function getIdentifier(string $name) : string
    {
        static $salt;

        $salt   = $salt ?? $salt = self::loadBaseHashSalt();
        $suffix = substr(sha1($name . $salt), 0, 5);

        if (! preg_match(self::VALID_IDENTIFIER_FORMAT, $name)) {
            return self::DEFAULT_IDENTIFIER . $suffix;
        }

        return $name . $suffix;
    }
1019245
public function getCookie(string $name) : ?string
    {
        return (($this->cookies->has($name) === true) ? $this->cookies->get($name)->getValue() : null);
    }
306860
public function offsetGet($name)
    {
        $data = [];
        if (!isset($this->_hashes[$name])) {
            throw new RuntimeException("Unexisting Set-Cookie `'{$name}'`.");
        }
        foreach ($this->_hashes[$name] as $key => $hash) {
            $data[] = $this->_data[$hash];
        }
        return $data;
    }
1072961
public function get($name)
    {
        return $this->cookieBag->key($this->cookiePrefix . $name, false, true);
    }
1135487
public static function get($name, $config = NULL)
    {
        if(isset($_COOKIE[$name]))
        {
            // Decrypt cookie using cookie key
            if($v = json_decode(Cipher::decrypt(base64_decode($_COOKIE[$name]), Config::config()->key), true))
            {
                return $v;
            }
        }

        return FALSE;
    }
155638
public function get($name = '')
    {
        $result = '';
        if (isset($_COOKIE[$name])) {
            $result = $_COOKIE[$name];
        }

        return $result;
    }
180039
protected function getCacheKey($name) {
        $filename = str_replace('\\',DIRECTORY_SEPARATOR,$this->options['path'] . $name . $this->options['ext']);
        return $filename;
    }
509126
public function get($name)
    {
        $cookie = $this->request->getCookieParams();

        return array_key_exists($name, $cookie) ? $cookie[$name] : null;
    }