×
Siemens Industry Online Support
Siemens AG
Tipo de artículo: FAQ ID de artículo 109483101, Fecha del artículo: 05/10/2016
(54)
Evaluar

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

  • Artículo
  • Relacionado con producto(s)
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).


SHA-256

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

Example:


Figure 1

 

SHA-512

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

Example:


Figure 2


Download

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

Notes

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
Checksum

Información de seguridad
Para proteger las infraestructuras tecnológicas, los sistemas, las máquinas y las redes contra amenazas cibernéticas, es necesario implementar y mantener continuamente un concepto de seguridad de TI holístico de última generación. Los productos y soluciones de Siemens son parte de este concepto. Para obtener más información sobre seguridad cibernética. Encontrará más información sobre la seguridad cibernética en
https://www.siemens.com/cybersecurity#Ouraspiration.