How to get an MD5 checksum in PowerShell

后端 未结 17 1614
夕颜
夕颜 2020-11-28 01:14

I would like to calculate an MD5 checksum of some content. How do I do this in PowerShell?

17条回答
  •  Happy的楠姐
    2020-11-28 01:43

    If you are using the PowerShell Community Extensions there is a Get-Hash commandlet that will do this easily:

    C:\PS> "hello world" | Get-Hash -Algorithm MD5
    
    
    Algorithm: MD5
    
    
    Path       :
    HashString : E42B054623B3799CB71F0883900F2764
    

提交回复
热议问题