Get Unix-style sha1 sum in Powershell
When you need to provide in Powershell a sha1 sum that will be compared to a Unix-style sha1 sum, you can use this simple oneliner.
( Get-FileHash -Algorithm SHA1 -Path C:\Path\to\file.zip ).Hash.ToLower()
I know, really deep. But I needed it.
Comments