sha512sum (计算并检查SHA512加密的消息摘要)

瑞兹 发表于 2020-12-06 00:32
浏览次数:
在手机上阅读

在类似Unix的操作系统上,sha512sum命令计算并检查SHA512加密的消息摘要。

查看英文版

目录

1 sha512sum 运行系统环境

2 sha512sum 描述

3 sha512sum 语法

4 sha512sum 例子

sha512sum 运行系统环境

Unix&Linux

sha512sum 描述

所述sha512sum命令显示或检查SHA512(512位)的校验和。如果没有FILE,或者当FILE为-(破折号)时,它将从标准输入读取消息摘要。
The sha512sum command displays or check SHA512 (512-bit) checksums. With no FILE, or when FILE is - (a dash), it reads the message digest from standard input.

查看英文版

查看中文版

sha512sum 语法

sha512sum [OPTION]... [FILE]...

选件

-b,--binary 以二进制模式读取。
-c,--check FILEs读取SHA512总和并进行检查。
--tag 创建一个BSD样式的校验和。
-t,--text 以文本模式读取(默认)。
注意

GNU系统上的二进制和文本模式选项之间没有区别。

以下四个选项仅在验证校验和时才有用:

--quiet 不要为每个成功通过验证的文件打印“确定”。
--status 什么都不输出,状态码显示成功。
--strict 对于格式不正确的校验和行,请退出非零值。
-w,--warn 警告格式不正确的校验和行。
--help 显示此帮助并退出。
--version 输出版本信息并退出。

如FIPS-180-2中所述计算总和。检查时,输入应为该程序的先前输出。默认模式是打印带有校验和的行,一个指示输入模式的字符(“ *”表示二进制,文本表示空格)以及每个FILE的名称。

sha512sum [OPTION]... [FILE]...

Options

-b, --binary Read in binary mode.
-c, --check Read SHA512 sums from the FILEs and check them.
--tag Create a BSD-style checksum.
-t, --text Read in text mode (default).
Note

There is no difference between binary and text mode option on GNU system.

The following four options are useful only when verifying checksums:

--quiet Don't print OK for each successfully verified file.
--status Don't output anything, status code shows success.
--strict Exit non-zero for improperly formatted checksum lines.
-w, --warn Warn about improperly formatted checksum lines.
--help Display this help and exit.
--version Output version information and exit.

The sums are computed as described in FIPS-180-2. When checking, the input should be a former output of this program. The default mode is to print a line with checksum, a character indicating input mode ('*' for binary, space for text), and name for each FILE.

查看英文版

查看中文版

sha512sum 例子

sha512sum example.iso

运行上面的命令将在当前目录中提供example.iso文件的SHA512校验和。以下是一个完整的SHA512校验和后跟文件名的输出显示示例。

cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e example.iso
sha512sum example.iso

Running the above command would give the SHA512 checksum of the example.iso file in the current directory. Below is an example of how the output may appear with the full SHA512 checksum followed by the file name.

cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e example.iso

查看英文版

查看中文版

其他命令行

sysklogd | s2p | service | sag | set | setenv | setfacl | sfdisk | sha224sum | sha256sum | sha384sum | shutdown | sleep | stat | startx | strftime | strip | swapoff | shred |

如此好文,分享给朋友
发表评论
验证码:
评论列表
共0条