md5校验
发表于 2023-03-26| 分类于 笔记 | | 评论数校验文件命令
Linux
# 计算文件MD5 md5sum filename # 计算文件MD5并输出到文件 md5sum filetohashA.txt filetohashB.txt filetohashC.txt > hash.md5 cat hash.md5 595f44fec1e92a71d3e9e77456ba80d1 filetohashA.txt 71f920fa275127a7b60fa4d4d41432a3 filetohashB.txt 43c191bf6d6c3f263a8cd0efd4a058ab filetohashC.txt # 校验多个MD5,只能读取文件来校验 md5sum -c hash.md5 filetohashA.txt: OK filetohashB.txt: OK filetohashC.txt: OK
Windows
cmd
certutil -hashfile filetohashA MD5 //检验MD5 certutil -hashfile filetohashA SHA1 //检验SHA1 certutil -hashfile filetohashA SHA256 //检验SHA256 certutil -hashfile -? 用法: CertUtil [选项] -hashfile InFile [HashAlgorithm] 通过文件生成并显示加密哈希 选项: -Unicode -- 以 Unicode 编写重定向输出 -gmt -- 将时间显示为 GMT -seconds -- 用秒和毫秒显示时间 -v -- 详细操作 哈希算法: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512
powershell
Linux后台执行命令
满分是10分的话,这篇文章你给几分,您的支持将鼓励我继续创作!
- 本文链接: https://ltba.github.io/20230326121155.html
- 版权声明: 本站未注明转载的文章均为原创,所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议.转载请注明出处!
Gitalking ...