• 请不要在回答技术问题时复制粘贴 AI 生成的内容
how2ex
V2EX  ›  程序员

win7 win10 自带 md5 sha1 校验工具,了解一下

  •  
  •   how2ex · Feb 9, 2020 · 4245 views
    This topic created in 2459 days ago, the information mentioned may be changed or developed.

    cmd 里面的 certutil

    Power Shell 里面的 Get-FileHash

    了解一下

    用法: CertUtil [选项] -hashfile InFile [HashAlgorithm]

    certutil -hashfile D:\1.txt

    certutil -hashfile D:\1.txt md5

    Get-FileHash D:\1.txt

    Get-FileHash D:\1.txt -Algorithm md5

    4 replies  •  2020-02-10 17:30:22 +08:00
    z775781
    z775781
    Feb 9, 2020
    1
    查看了一下帮助,发现 certutil 这个工具还挺强大的,
    -decodehex -- 解码十六进制编码的文件
    -decode -- 解码 Base64 编码的文件
    -encode -- 将文件编码为 Base64
    ThirdFlame
    ThirdFlame
    Feb 9, 2020
    2
    certutil 最大的作用是 当 wget/CURL 用。
    geelaw
    geelaw
    Feb 9, 2020
    3
    那么如何让 PowerShell 默认不要截断更长的 hash (如 SHA256、SHA384、SHA512 )的显示呢?

    答案是修改默认显示格式 https://geelaw.blog/entries/ps-get-filehash-truncated/
    whywhywhy
    whywhywhy
    Feb 10, 2020 via Android
    4
    @ThirdFlame 搜了一下,还真有木马利用这个
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5287 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 02:10 · PVG 10:10 · LAX 18:10 · JFK 21:10
    ♥ Do have faith in what you're doing.