why is Powershell Get-FileHash sha256 value differernt from 7Zip's sha256 value

Spaans, Ralph (MNRF) 0 Reputation points
2023-07-06T12:14:32.93+00:00

Hi

I use powershell get-filehash sha256 to calculate a hash value on a file that has a file path greater than 260 characters long (includes file name). I get a value.

I copy the file to a file path with a short (less than 100 characters long) and use powershell's get-filehash and get the same sha256 value.

I use 7-Zip and replicate the steps on the same files. Both 7-Zip's sha256 values match.

The sha256 values from powershell get-filehash and 7-zip crc sha256 do not match.

does anybody know why?

thanks in advance

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-07-07T04:01:54.37+00:00

    Hi,

    The Get-FileHash cmdlet and 7-Zip calculate the same hash value on my Windows 10. Have your files been modified? The version of my 7-Zip is 23.01.

    User's image

    User's image

    Best Regards,

    Ian Xue

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.