protected function getCrypto($session_id)
    {
        $key = $this->getKey();

        if (!$key) {
            return null;
        }

        if (!$this->crypto || $this->crypto->getSalt() != $session_id) {
            $this->crypto = Injector::inst()->create(CryptoHandler::class, $key, $session_id);
        }

        return $this->crypto;
    }
protected function getCrypto($session_id)
    {
        $key = $this->getKey();

        if (!$key) {
            return null;
        }

        if (!$this->crypto || $this->crypto->getSalt() != $session_id) {
            $this->crypto = Injector::inst()->create(CryptoHandler::class, $key, $session_id);
        }

        return $this->crypto;
    }
protected function getCrypto ( $ session_id ) { $ key = $ this -> getKey ( ) ; if ( ! $ key ) { return null ; } if ( ! $ this -> crypto || $ this -> crypto -> getSalt ( ) != $ session_id ) { $ this -> crypto = Injector :: inst ( ) -> create ( CryptoHandler :: class , $ key , $ session_id ) ; } return $ this -> crypto ; }
Get the cryptography store for the specified session

@param string $session_id
@return HybridSessionStore_Crypto
Get the cryptography store for the specified session