Siemens Industry Online Support
Siemens AG
文档类型 常问问题 文档编号 109483101, 文档发布日期 2016年10月5日

How do you determine the SHA-256 or SHA-512 checksum of a file?

  • 文档
  • 涉及产品
To check the integrity of a file you can use mathematical procedures to create a hash value (checksum) of the file.

In Siemens Industry Online Support you will find a SHA256 or SHA512 hash value for some download files. This will allow you to check if a file has been downloaded unchanged. For verification, calculate the hash value of the downloaded file and compare it to the value specified on the download page.

A hash value is shown in hexadecimal format, which means that spaces and the case of the letters are not relevant and serve only for easier reading.

You can find, download and use any program in the internet for calculating an SHA256 or SHA512 hash value.

Windows (version 7 SP1 and higher) also provides the possibility of determining the hash value; for this you need the Windows Powershell V4.0 or higher (see Notes).


To calculate the SHA256 hash value of a file you enter the following command in a Windows Powershell window:

get-filehash -algorithm sha256 'filename' | Format-List


Figure 1



To calculate the SHA512 hash value of a file you enter the following command in a Windows Powershell window:

get-filehash -algorithm sha512 'filename' | Format-List


Figure 2


In order to make it easier to calculate the hash value you can download the following batch file. You you can use drag-and-drop in the Windows Explorer. Just drop the file to be checked to this batch file. The hash values (SHA256 and SHA512) are is calculated and displayed in the Windows editor:

Figure 3

 Registrierung notwendig  109483101_Hash_FileToTxt.zip (1 KB)
SHA256: C724B40B61DDA1B8E43D8787D3BE7C77B81FFB9E4CBF6FC4CB1CCF13E736D466


Opening a Windows Powershell Window
Press the key combination <Win><R> and enter Powershell

Determining the installed Powershell version
Enter $PSVersionTable in a Windows Powershell window:

Figure 4

Under "PSVersion" you can read the version of the installed Powershell.
You need at least version V4.0 for calculating the SHA256 hash value.

Updating the Powershell
The Windows Powershell is included in the Windows Management Framework (WMF) which you can download directly from Microsoft.
Search for wmf on the Microsoft website.

Creation Environment
The screens in this FAQ response were created with Windows 10 Version 1607.

Additional Keywords