1
0

docs: 添加文章内容(2013 ~ 2023)

This commit is contained in:
2025-10-09 00:04:57 +08:00
parent 9a4f04e0c4
commit 49ac48892e
276 changed files with 10537 additions and 1 deletions

View File

@@ -0,0 +1,53 @@
---
title: Windows 通过命令提示符校验文件MD5、SHA1等
date: 2025-03-16T18:30:47Z
lastmod: 2025-03-16T18:33:57Z
tags: [Windows,命令,命令提示符,校验,CertUtil]
---
# Windows 通过命令提示符校验文件MD5、SHA1等
用到的命令CertUtil
已测试系统Windows 7、Windows 10、Windows Server 2012 R2
---
## 使用方法
### 命令
```plaintext
CertUtil -hashfile 文件路径 [算法]
```
### 使用举例
校验 `当前路径` 下的 `Test.zip` 的 MD5
```plaintext
CertUtil -hashfile Test.zip MD5
```
校验 `D:\Temp\ZIP\Test.zip` 的 SHA1
```plaintext
CertUtil -hashfile "D:\Temp\ZIP\Test.zip" SHA1
```
### 使用截图
![命令提示符](assets/network-asset-checksum-01-20250316183328-2ijfqbg.png)
![软件](assets/network-asset-checksum-02-20250316183328-mewlvcs.png)
### 支持的算法
- MD2
- MD4
- MD5
- SHA1
- SHA256
- SHA384
- SHA512