|
|
(未显示3个用户的6个中间版本) |
第1行: |
第1行: |
| <h1 id="head-be3e3099709c47ca620b502f1eafdad9915556c4">校验和</h1>
| | #REDIRECT [[UbuntuHelp:Checksum]] |
| <p> </p>
| |
| <p class="line862">原文出处:<a class="https" href="https://help.ubuntu.com/community/Checksum">Ubuntu Documentation</a></p>
| |
| <p class="line874">原文作者:Ubuntu Community</p>
| |
| <p class="line867"> </p>
| |
| <p class="line867"> </p>
| |
| <p class="line874">授权许可:</p>
| |
| <ul>
| |
| <li style="list-style-type: none;">
| |
| <p class="line891"><a class="http" href="http://creativecommons.org/licenses/by-sa/2.0/">创作共用协议Attribution-ShareAlike 2.0</a></p>
| |
| </li>
| |
| <li style="list-style-type: none;">
| |
| <p class="line891"><a class="http" href="http://www.gnu.org/copyleft/fdl.html">GNU自由文档许可证</a></p>
| |
| </li>
| |
| </ul>
| |
| <p class="line862">翻译人员:<a href="http://127.0.0.1:8000/MillenniumDark">MillenniumDark</a></p>
| |
| <p class="line874">校正人员:farproc</p>
| |
| <p class="line874">贡献人员:</p>
| |
| <p class="line874">适用版本:</p>
| |
| <p class="line862">文章状态:<a class="nonexistent" href="http://127.0.0.1:8000/%E7%BF%BB%E8%AF%91%E5%AE%8C%E6%88%90">翻译完成</a></p>
| |
| <p class="line874">根据2006-02-20 13:07:56的英文版翻译完成。</p>
| |
| <hr />
| |
| <p class="line874"> </p>
| |
| <div>
| |
| <table style="margin: 0pt 0pt 1em 1em; font-size: 0.9em; float: right; width: 30%; background-color: rgb(241, 241, 237);">
| |
| <tbody>
| |
| <tr>
| |
| <td style="padding: 0.5em;">
| |
| <p class="line891"><strong>快速导航</strong></p>
| |
| <div class="table-of-contents">
| |
| <p class="table-of-contents-heading">Contents</p>
| |
| <ol>
| |
| <li><a href="http://wiki.ubuntu.org.cn/index.php/%E8%A5%BF%E7%BA%B3%E4%B9%8C%E5%8D%A1Ubuntu%E6%A6%82%E8%BF%B0#http://wiki.ubuntu.org.cn/index.php?title=%E4%BB%80%E4%B9%88%E6%98%AF%E6%A0%A1%E9%AA%8C%E5%92%8C&variant=zh-cn#head-6c570a24b0bc534f91535e85a7e33b844fea9fd2">Definition(定义)</a></li>
| |
| <li><a href="http://wiki.ubuntu.org.cn/index.php/%E8%A5%BF%E7%BA%B3%E4%B9%8C%E5%8D%A1Ubuntu%E6%A6%82%E8%BF%B0#http://wiki.ubuntu.org.cn/index.php?title=%E4%BB%80%E4%B9%88%E6%98%AF%E6%A0%A1%E9%AA%8C%E5%92%8C&variant=zh-cn#head-ea6c009003b37221f038df27461bd54cb97096a7">Normal Usage(通常使用)</a></li>
| |
| <li><a href="http://wiki.ubuntu.org.cn/index.php/%E8%A5%BF%E7%BA%B3%E4%B9%8C%E5%8D%A1Ubuntu%E6%A6%82%E8%BF%B0#http://wiki.ubuntu.org.cn/index.php?title=%E4%BB%80%E4%B9%88%E6%98%AF%E6%A0%A1%E9%AA%8C%E5%92%8C&variant=zh-cn#head-2aa166ce6efa3c107f9a9e650e61dbbdb6522de4">History(历史)</a>
| |
| <ol>
| |
| <li><a href="http://wiki.ubuntu.org.cn/index.php/%E8%A5%BF%E7%BA%B3%E4%B9%8C%E5%8D%A1Ubuntu%E6%A6%82%E8%BF%B0#http://wiki.ubuntu.org.cn/index.php?title=%E4%BB%80%E4%B9%88%E6%98%AF%E6%A0%A1%E9%AA%8C%E5%92%8C&variant=zh-cn#head-93d31583291b90b80681dc9f109d91afb209a2dd">xmodem</a></li>
| |
| </ol>
| |
| </li>
| |
| <li><a href="http://wiki.ubuntu.org.cn/index.php/%E8%A5%BF%E7%BA%B3%E4%B9%8C%E5%8D%A1Ubuntu%E6%A6%82%E8%BF%B0#http://wiki.ubuntu.org.cn/index.php?title=%E4%BB%80%E4%B9%88%E6%98%AF%E6%A0%A1%E9%AA%8C%E5%92%8C&variant=zh-cn#head-065f1d9c44b5bdcdbcca9d1e5a32c1e597742f60">Link(链接)</a></li>
| |
| </ol>
| |
| </div>
| |
| </td>
| |
| </tr>
| |
| </tbody>
| |
| </table>
| |
| </div>
| |
| <p> </p>
| |
| <p class="line867"> </p>
| |
| <h2 id="head-6c570a24b0bc534f91535e85a7e33b844fea9fd2">1. Definition(定义)</h2>
| |
| <p> </p>
| |
| <p class="line862">A checksum is like a signature of data given in a standard fashion. This representation has a fixed length, and is unique for different strings of data. <strong>Files like this usually ends with md5, md5sum, sha, checksum, sum, or something similar</strong></p>
| |
| <p class="line862">checksum是以标准方式给出的数据的签名。它具有固定的长度,不同的数据串具有各自不同的checksum。<strong>这一类checksum文件通常以md5、 md5sum、sha、 checksum、sum或者类似的东西结尾。</strong></p>
| |
| <p class="line874">The idea is that it is virtually impossible to modify the data without affecting the signature so that a package cannot be corrupted or manipulated without affecting this signature and once it is corrupted or manipulated, you can know about it.</p>
| |
| <p class="line874">它的思想是决不可能修改数据而不影响其签名,所以一个包被破坏或被改动后其签名一定会受到影响。同时一旦它被破坏或被改动过,你通过检查签名就会得知。</p>
| |
| <p class="line867"> </p>
| |
| <h2 id="head-ea6c009003b37221f038df27461bd54cb97096a7">2. Normal Usage(通常使用)</h2>
| |
| <p> </p>
| |
| <p class="line874">This feature can be used to verify file downloads. If the owner/maintainer/provider of a file creates a checksum, eg an MD5 or SHA file. You can download the file and also download this checksum file. And once the downloads are finished, you can natively calculate your own checksum using the checksum program. These downloaded and calculated values can be verified, thus telling you that the file downloaded is an exact copy of the original. Another use is to verify larger automatic backup solutions, such as common mirroring applications as rsync or wget.</p>
| |
| <p class="line874">Checksum 的这一特性通常用于校验文件下载。如果文件的拥有者、维护者、提供者创建了一个,比如说,MD5或者SHA的Checksum文件, 下载这一文件的使用者可以同时下载这个Checksum文件。一旦下载完成,他/她就可以在本地通过计算得出自己的checksum文件。通过 校验,两者相符,使用者就知道下载所得和预期完全一致。另一个用处是校验巨大的自动备份。也可用于一些常见的镜像软件,比如 rsync和wget。</p>
| |
| <p class="line867"> </p>
| |
| <h2 id="head-2aa166ce6efa3c107f9a9e650e61dbbdb6522de4">3. History(历史)</h2>
| |
| <p> </p>
| |
| <p class="line874">This system has been used almost since the dawn of computers. And it is used even today without you knowing it, for example there is CRC checking as you transfer TCP/IP packages to view this page.</p>
| |
| <p class="line874">几乎在电脑产生的时候这一系统就使用了。如今,它(checksum)依然无处不在,即使你没察觉到;比如,当你传送TCP/IP包来查看本页面时,就使用checksum进行了即时的CRC校验。</p>
| |
| <p class="line867"> </p>
| |
| <p class="line867"> </p>
| |
| <p class="line867"> </p>
| |
| <h3 id="head-93d31583291b90b80681dc9f109d91afb209a2dd">3.1. xmodem</h3>
| |
| <p> </p>
| |
| <hr />
| |
| <p class="line874">Xmodem, a popular file-transfer protocol, uses a 1-byte checksum, which is calculated by adding all the ASCII values for all 128 data bytes and ignoring any numeric overflow. The checksum is added to the end of the Xmodem data packet. This type of checksum does not always detect all the errors. In the later versions of the Xmodem protocol, cyclical redundancy check (CRC) is used instead of more rigorous error control. <em>(Ref: Dyson, Dictionary of Networking)</em></p>
| |
| <p class="line862">Xmodem, 通行的文件传输协议,使用一字节的checksum。这一checksum是这样计算的:将所有128个数据字节的ASCII值相加,忽略所有(相加所得 和的)溢出部分的数值。checksum附加在Xmodem数据包的最后。这种checksum并不总能检测出所有错误。在Xmodem协议后续版本中, 它被换成cyclical redundancy check (CRC),以支持更严格的错误控制。<em>(参见:Dyson,Dictionary of Networking) </em></p>
| |
| <hr />
| |
| <p class="line874"> </p>
| |
| <p class="line867"> </p>
| |
| <p class="line867"> </p>
| |
| <h2 id="head-065f1d9c44b5bdcdbcca9d1e5a32c1e597742f60">4. Link(链接)</h2>
| |
| <p> </p>
| |
| <p class="line867"><a class="http" href="http://freshmeat.net/browse/19/">Freshmeat software repository. Category System Archiving</a></p>
| |
| <p class="line867"><a class="http" href="http://ee.tut.fi/%7Eheikki/foss/ckmd5/">chkmd5, a popular md5 checksum verifier</a></p>
| |
| <p class="line867"><a class="http" href="http://cfv.sourceforge.net/">cfv, a general checksum creator/checker. This can even verify .torrent files!</a></p>
| |
| <p class="line867"><a class="http" href="http://winmd5sum.solidblue.ca/">winmd5sum is a free, open source, easy to use md5 checker for Windows</a></p>
| |
| <p lang="zh" id="pageinfo" class="info" dir="ltr">CheckSum (2007-03-12 15:26:00由<span title="??? @ localhost[127.0.0.1]">localhost</span>编辑)</p>
| |