Here is an example using Linux where I downloaded a file “npp.7.9.2.Installer.exe” and verified that the checksum matched the checksum published by the author. Shasum -a 512 /path/to/file Verify the Checksumįinally once you have calculated the checksum simply compare the output to the value shown by the commands above to the one on the download page. Replacing “256” with 1,224,384 or 512 allows you to calculate other hashes: shasum -a 1 /path/to/file On the Mac command line you can use the shasum command to calculate the SHA256 hash: shasum -a 256 /path/to/file Md5sum /path/to/file Calculate Hash on the Mac There are similar commands to calculate the SHA1, SHA512 and MD5 hashes: sha1sum /path/to/file Under many of the popular Linux distributions you can use the sha256sum command to calculate the SHA256 hash of a file: Get-FileHash C:\path\to\file -Algorithm MD5 Calculate Hash under Linux Get-FileHash C:\path\to\file -Algorithm SHA512 Get-FileHash C:\path\to\file -Algorithm SHA384 Get-FileHash C:\path\to\file -Algorithm SHA256 This article discusses complete file details, EXE file troubleshooting instructions for problems with winver. Winver.exe is found in Windows 10, Windows 8.1, and Windows 8. To calculate other hash types you can use: Get-FileHash C:\path\to\file -Algorithm SHA1 The latest file update released for Windows 10 was on file version 3.0 (WinBuild.160101.0800). If you are familiar with PowerShell then you can run the following command to calculate the SHA256 hash of a file: Get-FileHash C:\path\to\file -Algorithm SHA256 To calculate the SHA256 hash of “file” use: CertUtil -hashfile C:\path\to\file SHA256įor the other hash types you can replace SHA256 with the hash name as in these examples: CertUtil -hashfile C:\path\to\file MD2ĬertUtil -hashfile C:\path\to\file SHA256ĬertUtil -hashfile C:\path\to\file SHA384ĬertUtil -hashfile C:\path\to\file SHA512 Calculate Hash using PowerShell If you are running Microsoft Windows 10 you can verify the checksum of a file using the command line. Once you have a command prompt available you should navigate to the location of your downloaded file. Select Terminal under the Applications > Utilities menu. Press Windows Key R to open the “Run” box. Launch Command LineĪfter downloading your file you will need to launch a command line window or terminal. Some might suggest downloading various tools but it is easy enough from the command line using built in features. In Windows you can make a checksum of a file without installing any additional software. Verifying that the checksum of your downloaded file matches the checksum listed on the download page ensures it is genuine and intact.Ĭalculating the cryptographic checksum of a file in a Windows, Linux and Mac environment is fairly easy. The checksum is usually a long list of numbers and characters which can be considered the fingerprint of the file. When downloading a file from the Internet it is often suggested that you verify the checksum. MS Windows include the certUtil tool that can be used to calculate the hash of the files using different protocols like MD5, SHA256, etc. But it cannot be used to calculate the 10 digits checksum provided by Oracle.Īnd easy way to calculate the checksum using MS tool is by using the “cksum” utility included on ubuntu when you turn on the Windows feature “Windows subsystem for Linux”. Simple open the application “Bash on Ubuntu on Windows”, move to the directory that contains the file verified and execute “cksum. Recently I needed to install Oracle client on a MS Windows 10 machine. On the Oracle download website, the corresponding checksum “cksum” (10 digit) is provided for every file to download. On a nutshell, the checksum is calculated bases on the content of the file, if the file has been tampered or damage, the calculated checksum will differ from the checksum provided. It is always recommended to calculate the checksum of the downloaded file and compare it with the checksum provided.
0 Comments
Leave a Reply. |