-a, --algorithm
Select the digest TYPE to use: sysv, bsd, crc, crc32b, md5, sha1, sha224, sha256, sha384, sha512, blake2b.
An option of cksumx.
Usage
cksumx -a TYPE [FILE]...
cksumx --algorithm=TYPE [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-a | --algorithm | TYPE | select the digest TYPE to use: sysv, bsd, crc, crc32b, md5, sha1, sha224, sha256, sha384, sha512, blake2b |
Examples
Print a SHA-256 digest as a tagged line
cksumx -a sha256 file.isoPrint it in the sha256sumx style
cksumx -a sha256 --untagged file.isoPrint a digest in base64 (as SRI hashes use)
cksumx -a sha384 --base64 app.jsPrint a 256-bit BLAKE2b digest
cksumx -a blake2b -l 256 file.isoPrint the gzip-compatible CRC-32
cksumx -a crc32b data.binPrint the legacy BSD sum checksum
cksumx -a bsd file.txtSave tagged digests and check them later
cksumx -a sha256 *.iso > SUMS && cksumx -c SUMSWrite the raw binary digest of one file
cksumx -a sha256 --raw file.iso > file.sha256.binHelp in the terminal
gnux help cksumx --algorithm