もっと詳しく

Many friends have downloaded a certain file and can’t open it, or it is not the case after opening it. Some friends even downloaded a certain “official system” and installed a bunch of viruses.This is often caused by the downloaded file or the wrong board.. Due to network problems, CDN caches and even phishing websites, it is really difficult to judge whether the downloaded files will be out of stock by default. To solve this problem,Hash check on files, is a very effective approach, but Windows does not seem to have this option by default. How to do? Come share some tips today!

Command Line

In fact, it is inaccurate to say that Windows does not have the function of Hash file by default. The Windows system actually has the function of Hash file, but it is not directly provided to the user in the graphical interface.Hash commands can be executed from the command line.

First of all, we need to query the specific path of a file. This is very simple. You can query it by clicking the file and calling out the right-click menu to view the properties.

Next, run PowerShell and enter the following command.

Get-FileHash <文件路径> -Algorithm <Hash算法>| Format-List

Among them, fills in the location of the file, and fills in the Hash type that you want to operate. Windows supports SHA1, SHA256, SHA384, SHA512, MACTripleDES, MD5, RIPEMD160 algorithms by default, but does not support CRC-32 and CRC-64.

For example, there is a file called “1.jpg”, which exists in the root directory of the C drive. If you want to use the MD5 algorithm to verify, you should enter the following command.

Get-FileHash C:1.jpg -Algorithm md5| Format-List

After that, the hash value will be given in PowerShell.

Hash file Hash tool

7-Zip

Although the command line is useful, it is troublesome after all. Is there an easier way? In fact, you can try to use 7-Zip this compression software.

7-Zip:https://www.7-zip.org/

I believe many people have heard the name of 7-Zip. It is one of the most popular open source compression software in the world, with a huge influence.Many compression software, especially domestic compression software, use the source code of 7-Zip. But little known is that in fact, in addition to 7-Zip can help you compress and decompress files,It also provides a very convenient and fast Hash file function.

Hash file Hash tool

Open the main interface of 7-Zip, click “Tools” to enter “Options”, you can see multiple tabs. Switch to “7-Zip”, check “Add 7-Zip to right-click menu”, and check the option of “CRC SHA” below, then right-click the file,You can see the Hash function provided by 7-Zip.

Hash file Hash tool

7-Zip supports Hash algorithms such as CRC-32, CRC-64, SHA256, SHA1 and BLAKE2sp, which makes up for the deficiencies of Windows’ own Hash algorithm. Too bad 7-Zip The very common MD5 is not providedif you need MD5 Hash, you have to find another way.

OpenHashTab

7-Zip is good, but it’s always a compression software in its own right. If you need a more professional solution, OpenHashTab may be the perfect choice.

OpenHashTab:https://github.com/namazso/OpenHashTab

OpenHashTab is an open source software that focuses on providing Hash verification functions. It is small in size, supports Chinese, and there is no threshold for use.

The use of OpenHashTab is very simple, you can install it directly after downloading. After that, just open the file properties,You can see the “Hash Information” tab, which lists the various hash values ​​of the file..

Hash file Hash tool

The functionality of OpenHashTab is professional and comprehensive. In terms of supported algorithms, OpenHashTab supports the following Hash algorithms.

CRC32, CRC64 (xz)
xxHash (XXH32, XXH64)
xxHash3 (64 and 128 bit variants)
MD4, MD5
RipeMD160
Blake2sp
SHA-1
SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512)
SHA-3 (SHA3-224, SHA3-256, SHA3-384, SHA3-512)
BLAKE3 (256 bit, 512 bit)
KangarooTwelve (264 bit, 256 bit, 512 bit)
ParallelHash128 (264 bit) and ParallelHash256 (528 bit)
Streebog (GOST R 34.11-12) (256 bit, 512 bit)

In addition, OpenHashTab also supports folders. You can also select multiple files to calculate Hash together. Double-click the calculated Hash value to choose to copy, which is very convenient.

In general, OpenHashTab is a very good choice if you often need to calculate the hash of the file.

Summarize

Worrying about errors in downloaded files, using Hash comparison is indeed an effective method. At present, the default Hash function of Windows is not convenient. I hope the above method can help you!

.
[related_posts_by_tax taxonomies=”post_tag”]

The post The downloaded file cannot be opened or even poisoned?Teach you a few tricks Hash file – IT Home appeared first on Gamingsym.