← 返回命令列表

Linux command

sha224sum 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Calculate SHA224 hash

sha224sum [file]

Check hashes from file

sha224sum -c [checksums.txt]

Calculate for multiple files

sha224sum [file1] [file2]

Read from stdin

echo "[text]" | sha224sum

说明

sha224sum computes and verifies SHA-224 cryptographic hash values, producing a 224-bit (56-character hexadecimal) message digest. It is part of the SHA-2 family of hash functions and operates identically to sha256sum in usage, differing only in output length and the underlying truncation of the hash. SHA-224 is less commonly used than SHA-256 but provides adequate security for applications where a shorter hash is preferred, such as certain certificate signature schemes. With no FILE argument or when FILE is -, input is read from standard input. In check mode (-c), previously generated checksums are verified against current file contents.

参数

-c, --check
Verify checksums from file.
-b, --binary
Read in binary mode.
-t, --text
Read in text mode.
--quiet
Don't print OK for verified files.

FAQ

What is the sha224sum command used for?

sha224sum computes and verifies SHA-224 cryptographic hash values, producing a 224-bit (56-character hexadecimal) message digest. It is part of the SHA-2 family of hash functions and operates identically to sha256sum in usage, differing only in output length and the underlying truncation of the hash. SHA-224 is less commonly used than SHA-256 but provides adequate security for applications where a shorter hash is preferred, such as certain certificate signature schemes. With no FILE argument or when FILE is -, input is read from standard input. In check mode (-c), previously generated checksums are verified against current file contents.

How do I run a basic sha224sum example?

Run `sha224sum [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c, --check do in sha224sum?

Verify checksums from file.