선수로 산다, 때론 좋은 코치로

[도구] 해시값 구하기 - CertUtil 본문

보안 관련/보안

[도구] 해시값 구하기 - CertUtil

godsman 2018. 2. 26. 20:50

[도구] 해시값 구하기 - CertUtil

윈도우즈 command line에서 해쉬값 구하는 도구입니다.
Microsoft Support에서는 command-prompt utility라고 하네요.
online에서 값을 구하거나 GUI를 이용한 도구는 쉽게 찾을 수 있습니다. command line tool은 많지 않습니다.
Microsoft에서 제공하는 도구가 있습니다.

FCIV - The File Checksum Integrity Verifier

Availability and description of the File Checksum Integrity Verifier utility
  • MD5와 SHA1을 지원합니다.
  • 해시값을 XML 파일에 저장할 수 있습니다.
  • 서브디렉토리에 있는 파일의 해시값을 구할 수 있습니다.
C:\Downloads>fciv.exe -sha1 DockerToolbox.exe
//
// File Checksum Integrity Verifier version 2.05.
//
8868fc3770e56aed270f0be10cfbcb2df3032163 dockertoolbox.exe

CertUtil - 인증서 서비스를 위해 설치되는 command line program

certutil -hashfile

  • Generate and display a cryptographic hash over a file
  • 해시 알고리즘: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512
C:\Downloads>certutil -hashfile DockerToolbox.exe
SHA1의 DockerToolbox.exe 해시:
8868fc3770e56aed270f0be10cfbcb2df3032163
CertUtil: -hashfile 명령이 성공적으로 완료되었습니다.

Get-FileHash - Microsoft.Powershell.Utility

Computes the hash value for a file by using a specified hash algorithm.

  • SHA1, SHA256, SHA384, SHA512, MACTripleDES, MD5, RIPEMD160

PS C:\Downloads> get-filehash -Algorithm SHA1 .\DockerToolbox.exe

Algorithm       Hash                                                            Path
---------      ----                                                           ----
SHA1            8868FC3770E56AED270F0BE10CFBCB2DF3032163      S:\Downloads\DockerToolbox.exe


'보안 관련 > 보안' 카테고리의 다른 글

암호 변경으로 어려움  (0) 2018.01.29
Comments