Check integrity of a file by hashing
- Gerar link
- X
- Outros aplicativos
It is possible to verify the integrity of a file, integrity means that the file remains the same as the person who created it wants, it means that it has not been altered by an unauthorized person or program. It is a very important concept in the area of information security, integrity is one of the pillars of information security as it allows to guarantee that a document is valid even if it is exchanged in two cities that are each located on one side of the globe. One way to verify the integrity of a file is by hashing.
Hash is a digest of a file, it's like a filter you pass the file through and it results in a unique string, if I change a point in the file the hash "string" turns into a totally different string of the original, the hash of a file is unique, and the hash has several applications in the daily life of the technology professional. Let's take a practical example:
I have a file and its contents are as follows:
After passing this file through a hash function, md5 in this case we have this result:
The string "a5890ace30a3e84d9118196c161aeec2" is the hash of the file as already commented out. Now I'm just going to add a period (.) in the file and let's see what happens.
The hash is already totally different:
"85c45b74e8753920570f6c9a01ca759b"
Done! Hope you understand the concept.
You can search and you will find other hash functions and there is also the possibility to check the hash through them. There are sha, sha1, sha256 and others.
Up until.
Website: https://www.intelligencesoftware.com.br
Ads: https://ads.intelligencesoftware.com.br- Gerar link
- X
- Outros aplicativos
Comentários
Postar um comentário