<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.phar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'phar.getsignature.php',
    1 => 'Phar::getSignature',
    2 => 'Retourne la signature MD5/SHA1/SHA256/SHA512 d\'une archive Phar',
  ),
  'up' => 
  array (
    0 => 'class.phar.php',
    1 => 'Phar',
  ),
  'prev' => 
  array (
    0 => 'phar.getpath.php',
    1 => 'Phar::getPath',
  ),
  'next' => 
  array (
    0 => 'phar.getstub.php',
    1 => 'Phar::getStub',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/phar/Phar/getSignature.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="phar.getsignature" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Phar::getSignature</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL phar &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">Phar::getSignature</span> &mdash; <span class="dc-title">Retourne la signature MD5/SHA1/SHA256/SHA512 d&#039;une archive Phar</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-phar.getsignature-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Phar::getSignature</strong></span>(): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>


  <p class="para rdfs-comment">
   Retourne la signature de vérification d&#039;une archive phar sous forme d&#039;une chaîne de caractères hexadécimale.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-phar.getsignature-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-phar.getsignature-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Un tableau avec la signature de l&#039;archive ouverte avec le <code class="literal">hash</code> en guise de clé et
   &quot;<code class="literal">MD5</code>&quot;, &quot;<code class="literal">SHA-1</code>&quot;, &quot;<code class="literal">SHA-256</code>&quot;
   ou &quot;<code class="literal">SHA-512</code>&quot; comme <code class="literal">hash_type</code>. Cette signature est un hachage
   calculé à partir du contenu de l&#039;archive entière; elle peut être utilisée pour vérifier
   l&#039;intégrité de l&#039;archive. Une signature valide est absolument requise pour toutes les archives phar
   exécutables si la variable INI <a href="phar.configuration.php#ini.phar.require-hash" class="link">phar.require_hash</a> vaut <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
   S&#039;il n&#039;y a pas de signature, la fonction retourne <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>
  </p>
 </div>


</div><?php manual_footer($setup); ?>