openbsd 5.1 packages文件SHA256检验不对(已解决)
本帖最后由 aoma 于 2012-11-02 09:04 编辑hi ,all
好不容易下载完了amd64的packages ,发现在这个目录下的SHA256文件对不上,具体如下
如
SHA256 (zzuf-0.13p2.tgz) = B2jE9yHmeYg/EV84+Y5aSnSoHs4dhmvNQBFKYA55xro=
实际下载检查到的,用sha256sum发现检验的长度不一样,也不匹配,不知是什么原因,求解
===================好象有提到base64 编码========================
SHA256 (EMBOSS-6.0.1p2.tgz) = csqlW0XTnbHU9EaXFOttjT+i37CFMxaI19PDILJ2Cp4=
# echo -ncsqlW0XTnbHU9EaXFOttjT+i37CFMxaI19PDILJ2Cp4=| bse64 -d |xxd
0000000: 72ca a55b 45d3 9db1 d4f4 4697 14eb 6d8dr..[E.....F...m.
0000010: 3fa2 dfb0 8533 1688 d7d3 c320 b276 0a9e?....3..... .v..
# sha256sum EMBOSS-6.0.1p2.tgz
72caa55b45d39db1d4f4469714eb6d8d3fa2dfb085331688d7d3c320b2760a9eEMBOSS-6.0.1p2.tgz
现在不清楚是如何直接生成的,另外现在的样子也不容易看呀,好象openbsd的sha256 -b有直接生成base64编码的能力
DESCRIPTION
sha256 takes as input a message of arbitrary length and produces as
output a 256-bit "fingerprint" or "message digest" of the input.It is
conjectured that it is computationally infeasible to produce two messages
having the same message digest, or to produce any message having a given
prespecified target message digest.
The SHA2-256 algorithm is intended for digital signature applications,
where a large file must be "compressed" in a secure manner before being
encrypted with a private (secret) key under a public-key cryptosystem
such as RSA.
The options are as follows:
-b Output checksums in base64 notation, not hexadecimal.
换服务器看看,是不是所有服务器都是这样,有的时候服务器没有同步好。 问题是发现的文件是在这里的
ftp://ftp.openbsd.org/pub/OpenBSD/5.1/packages/amd64/SHA256
其他所有服务器都与这个一样的
再看看这个
ftp://ftp.openbsd.org/pub/OpenBSD/5.1/amd64/SHA256
这个是对的,匹配得上
页:
[1]