I have created Hash code of an .iso
file using fciv.exe
. I have used MD5 and SHA1 algorithm. Then I found Get-filehash -Path "c:\MyProject.iso" -Algorithm Sha1
cmdlet in PowerShell, as it is very easy I used that.
But both the tools created different hash code. Hash algorithms should be unique across all the tools. At least that's what my understanding is - am I right? Or it is an expected behavior?
Update: I have taken a sample file and created hash value for that using fciv.exe and also using Powershell.
Fciv.exe created following Sha1
6d9Rar2xh+B5/eEE96pO15EDji0=
Powershell created following Sha1
E9DF516ABDB187E079FDE104F7AA4ED791038E2D
It is the same hash code, but
Fciv.exe
show it as BASE64 string, whileGet-FileHash
show it as HEX string:With this piece of code you can add BASE64 representation of hash code to
Get-FileHash
output: