[Win] How to verify integrity file

You are here:
< All Topics

Hi guys,

yesterday, I was reading an interesting article to verify integrity of file,
I think that this operation I didn’t make more times,

but if you think, an attacker can compromise your file when the packet is sent to destination on network.

So, I decided to investigate, how can I protect?

In Windows enviroment, when I download a program.
open your powershell,

I’ve made, for example, a test with virtualbox installer and run:

$bytes= $algorithm.ComputeHash($fileBytes)
-Join ($bytes | ForEach {"{0:x2}" -f $_})

You can compare the output with the checksum for verify the integrity

While in linux
you can use in prompt:

md5sum file_name 
sha256sum file_name

have you ever verify integrity file that you download from internet?

Table of Contents