'Powershell'에 해당되는 글 1건

  1. 2017.12.22 PowerShell에서 SHA256 값 얻기

윈도우에서 해시값을 얻기 위해 PowerShell을 사용할 수 있다.

 

PowerShell 5버전 이상에서는 Get-FileHash라는 유틸을 사용할 수 있지만

 

PS C:\> Get-FileHash $pshome\powershell.exe | Format-List
Algorithm : SHA256
Hash      : 6A785ADC0263238DAB3EB37F4C185C8FBA7FEB5D425D034CA9864F1BE1C1B473
Path      : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

 

윈도우 7을 사용하고 있는 PC에서는 PowerShell 버전이 낮아 사용할 수 없다.

아래와 같이 CertUtil 명령어를 사용할 수 있다.

 

PS C:\Users\Administrator\Desktop> certutil -hashfile .\rhel-5-client-x86_64-disc7.iso SHA256
SHA256 해시(.\rhel-5-client-x86_64-disc7.iso 파일):
f0 62 da 01 42 b8 a5 62 be 34 84 24 0b a0 7a d0 08 79 46 8e 8e c3 d9 bb 4d f8 61 5a 5c 23 9d cc
CertUtil: -hashfile 명령이 성공적으로 완료되었습니다.

Posted by dcmru
,