How to get an MD5 checksum in PowerShell

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

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

17条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 01:27

    Here are the two lines, just change "hello" in line #2:

    PS C:\> [Reflection.Assembly]::LoadWithPartialName("System.Web")
    PS C:\> [System.Web.Security.FormsAuthentication]::HashPasswordForStoringInConfigFile("hello", "MD5")
    

提交回复
热议问题