sha224sum (计算并检查SHA224加密的消息摘要)

瑞兹 发表于 2020-12-04 09:07
浏览次数:
在手机上阅读

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

查看英文版

目录

1 sha224sum 运行系统环境

2 sha224sum 描述

3 sha224sum 语法

4 sha224sum 例子

sha224sum 运行系统环境

Unix&Linux

sha224sum 描述

打印或检查SHA224(224位)校验和。如果没有FILE,或者当FILE是-时,请读取标准输入。
Print or check SHA224 (224-bit) checksums. With no FILE, or when FILE is -, read standard input.

查看英文版

查看中文版

sha224sum 语法

sha224sum [OPTION]... [FILE]...

选件

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

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

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

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

按照RFC 3874中的描述计算总和。检查时,输入应为该程序的先前输出。默认模式是打印带有校验和的行,一个指示输入模式的字符(二进制为'*',文本为空格)以及每个FILE的名称。

sha224sum [OPTION]... [FILE]...

Options

-b, --binary Read in binary mode.
-c, --check Read SHA224 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 RFC 3874. 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.

查看英文版

查看中文版

sha224sum 例子

sha224sum example.iso

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

d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f example.iso
sha224sum example.iso

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

d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f example.iso

查看英文版

查看中文版

其他命令行

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

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