phar.fileformat.signature.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 73 行
HTML
73 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Phar Signature format</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="phar.fileformat.html">What makes a phar a phar and not a tar or a zip?</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.Phar.html">Phar</a></div> <div class="up"><a href="phar.fileformat.html">What makes a phar a phar and not a tar or a zip?</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="phar.fileformat.signature" class="section"> <h2 class="title">Phar Signature format</h2> <p class="para"> Phars containing a signature always have the signature appended to the end of the Phar archive after the loader, manifest, and file contents. The two signature formats supported at this time are MD5 and SHA1. </p> <p class="para"> <table border="5"> <caption><b>Signature format</b></caption> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Length in bytes</th> <th colspan="1">Description</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">16 or 20 bytes</td> <td colspan="1" rowspan="1" align="left"> The actual signature, 20 bytes for an SHA1 signature, 16 bytes for an MD5 signature, 32 bytes for an SHA256 signature, and 64 bytes for an SHA512 signature. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">4 bytes</td> <td colspan="1" rowspan="1" align="left"> Signature flags. <i>0x0001</i> is used to define an MD5 signature, <i>0x0002</i> is used to define an SHA1 signature, <i>0x0004</i> is used to define an SHA256 signature, and <i>0x0008</i> is used to define an SHA512 signature. The SHA256 and SHA512 signature support was introduced with API version 1.1.0. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">4 bytes</td> <td colspan="1" rowspan="1" align="left"> Magic <i>GBMB</i> used to define the presence of a signature. </td> </tr> </tbody> </colgroup> </table> </p></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="phar.fileformat.html">What makes a phar a phar and not a tar or a zip?</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.Phar.html">Phar</a></div> <div class="up"><a href="phar.fileformat.html">What makes a phar a phar and not a tar or a zip?</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?