V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
how2ex
V2EX  ›  程序员

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

  •  
  •   how2ex · Feb 9, 2020 · 3884 views
    This topic created in 2269 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
        1
    z775781  
       Feb 9, 2020
    查看了一下帮助,发现 certutil 这个工具还挺强大的,
    -decodehex -- 解码十六进制编码的文件
    -decode -- 解码 Base64 编码的文件
    -encode -- 将文件编码为 Base64
    ThirdFlame
        2
    ThirdFlame  
       Feb 9, 2020
    certutil 最大的作用是 当 wget/CURL 用。
    geelaw
        3
    geelaw  
       Feb 9, 2020
    那么如何让 PowerShell 默认不要截断更长的 hash (如 SHA256、SHA384、SHA512 )的显示呢?

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