Skip to the content.

SHA256 Hash を取得するコマンドまとめ

$file の SHA256 Hash を取得するためのコマンド一覧です。なんとなくまとめてみました。

Linux

sha256sum $file

わかりやすいコマンド名。

MS-DOS (CMD)

certutil.exe -hashfile $file sha256

$file の後ろにパラメータが入るのは美しくない。

PowerShell

get-filehash $file

PowerShell のコマンド命名センスは独特。

汎用

7z h -scrcsha256 $file

7-zip のコマンドはわかりやすいがパラメータはわかりにくい。