Windows命令行查看文件的MD5.md

本文介绍如何使用Windows命令行工具certutil来查看文件的MD5值。certutil.exe是作为证书服务的一部分安装的命令行程序,可以用来显示文件的加密哈希,支持多种哈希算法。

# 使用Windows命令certutil查看文件的MD5值

使用方法:

CertUtil [Options] -hashfile InFile [HashAlgorithm]
Generate and display cryptographic hash over a file

选项:

* -Unicode                                     -- Write redirected output in Unicode
* -gmt                                            -- Display times as GMT
* -seconds                                    -- Display times with seconds and milliseconds
* -v                                                -- Verbose operation
* -privatekey                                 -- Display password and private key data
* -pin PIN                                      -- Smart Card PIN
* -sid WELL_KNOWN_SID_TYPE  -- Numeric SID
    1. 22 -- Local System
    2. 23 -- Local Service
    3. 24 -- Network Service

Hash 算法标志: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512

例子:

  • certutil -hashfile D:\file.extension MD5
  • certutil -hashfile D:\file.extension SHA1
  • certutil -hashfile D:\file.extension SHA256

命令简介:

Certutil.exe is a command-line program that is installed as part of Certificate Services. You can use Certutil.exe to dump and display certification authority (CA) configuration information, configure Certificate Services, backup and restore CA components, and verify certificates, key pairs, and certificate chains.

具体参考windows技术文档 - - - - 点击跳转

转载于:https://www.cnblogs.com/lichsh/p/8227999.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值