V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
how2ex
V2EX  ›  程序员

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

  •  
  •   how2ex · 2020-02-09 14:47:27 +08:00 · 3420 次点击
    这是一个创建于 1544 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    答案是修改默认显示格式 https://geelaw.blog/entries/ps-get-filehash-truncated/
    whywhywhy
        4
    whywhywhy  
       2020-02-10 17:30:21 +08:00 via Android
    @ThirdFlame 搜了一下,还真有木马利用这个
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2421 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 13:33 · PVG 21:33 · LAX 06:33 · JFK 09:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.