page

Oct 21, 2021

Get-FileHash - md5sum in Windows

 https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-filehash?view=powershell-7.1&viewFallbackFrom=powershell-6

Get-FileHash - compute hash value of a file

In linux, you can check file hash value with md5sum 

ex: md5sum file

 

In Windows, you can use 'Get-FileHash'

note : you need Microsoft PowerShell to run Get-FileHash. You can launch PowerShell terminal by using VS Code

After launch PowerShell terminal in VS Code,

C:\Documents and Settings> Get-FileHash -Algorithm MD5 test.zip   


Algorithm       Hash                                                        Path
---------       ----                                                             ----
MD5             6CDDB6DBD3DC341AF7FCD56CA8D2B4B8     C:\Documents and Settings\test.zip

No comments:

Post a Comment