<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'phar.getsignature.php',
    1 => 'Phar::getSignature',
    2 => 'Return MD5/SHA1/SHA256/SHA512/OpenSSL signature of a Phar archive',
  ),
  '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' => 'en',
    '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">Return MD5/SHA1/SHA256/SHA512/OpenSSL signature of a Phar archive</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-phar.getsignature-description">
  <h3 class="title">Опис</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">
   Returns the verification signature of a phar archive in a hexadecimal string.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-phar.getsignature-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-phar.getsignature-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Array with the opened archive&#039;s signature in <code class="literal">hash</code> key and <code class="literal">MD5</code>,
   <code class="literal">SHA-1</code>,
   <code class="literal">SHA-256</code>, <code class="literal">SHA-512</code>, or <code class="literal">OpenSSL</code>
   in <code class="literal">hash_type</code>.  This signature is a hash calculated on the
   entire phar&#039;s contents, and may be used to verify the integrity of the archive.
   A valid signature is absolutely required of all executable phar archives if the
   <a href="phar.configuration.php#ini.phar.require-hash" class="link">phar.require_hash</a> INI variable
   is set to true.
   If there is no signature, the function returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>



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