- 论坛徽章:
- 0
|
本帖最后由 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=
[root@xxxxxxxxx amd64]# echo -n csqlW0XTnbHU9EaXFOttjT+i37CFMxaI19PDILJ2Cp4=| bse64 -d |xxd
0000000: 72ca a55b 45d3 9db1 d4f4 4697 14eb 6d8d r..[E.....F...m.
0000010: 3fa2 dfb0 8533 1688 d7d3 c320 b276 0a9e ?....3..... .v..
[root@rtpp02e0 amd64]# sha256sum EMBOSS-6.0.1p2.tgz
72caa55b45d39db1d4f4469714eb6d8d3fa2dfb085331688d7d3c320b2760a9e EMBOSS-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.
|
|