打印FastCDC滚动哈希块和校验和。
项目描述
chunksum
打印FastCDC滚动哈希块和校验和。
usage: chunksum [-h] [-n ALG_NAME] [-f CHUNKSUMS_FILE] [-i INCR_FILE] [-m]
[path ...]
Print FastCDC rolling hash chunks and checksums.
positional arguments:
path path to compute chunksums
optional arguments:
-h, --help show this help message and exit
-n ALG_NAME, --alg-name ALG_NAME
chunksum algorithm name.
-f CHUNKSUMS_FILE, --chunksums-file CHUNKSUMS_FILE
chunksum file path, `-' for standard output.
-i INCR_FILE, --incr-file INCR_FILE
incremental updates file path
-m, --multi-process same number of multi-processes as cpu
alg-name:
Format "fc[k|m|g][0-9][sha2|blake2b|blake2s][32]".
For example, "fck4sha2", means using FastCDC("fc") with an
average chunk size of 2**8=256KB("k8") and using sha256("sha2")
to calculate the checksum.
"fcm4blake2b32" means using FastCDC with an average chunk size
of 2**4=16MB("m4") and using "blake2b" to calculate and output
a checksum of length "32" bytes(save storage).
For large files, you may using large chunk size, such as "m4",
to reduce the number of chunks.
(default: fck4sha2)
chunksums-file and incr-file:
You can specify the previous chunksums file if you want to
resume a previous check, or if you want to find the incremental
updates (new files) of the directory.
Examples:
$ chunksum /etc > ~/etc.chunksums
$ chunksum -n fcm4blake2b32 -m ~/Videos
$ chunksum -n fcm4blake2b32 -f ~/Videos/chunksums ~/Videos
$ chunksum -n fcm4blake2b32 -f ~/chunksums -i ~/chunksums.incr ~/Videos
项目详情
下载文件
为您的平台下载文件。如果您不确定选择哪个,请了解更多关于安装包的信息。
源分布
chunksum-0.6.0.tar.gz (11.4 kB 查看哈希值)
构建分布
chunksum-0.6.0-py3-none-any.whl (14.0 kB 查看哈希值)
关闭
chunksum-0.6.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 9524b1ff0394e9f34c8d0b90b14de35b3cbaaa2ab418a3157fddb3f499406ab9 |
|
MD5 | c539a173a4354155ad242904c234a49a |
|
BLAKE2b-256 | 9c942720ca80dc540f041dd0cc801998cdba45adb5527ba2ca586b8e9dd6a2a6 |
关闭
chunksum-0.6.0-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | a57f5961125da4a912b74a6ef9be320952f95afbfffbd42a1362fa8dfba391d5 |
|
MD5 | a99df97d2e44fc614efc18f4031ffc7d |
|
BLAKE2b-256 | 17330cc1304092d891840e0bc4a47619f3b303b5a770026baaf1cff7baa756c9 |