LoginSignup
3
3

More than 5 years have passed since last update.

Windows で md5sum をやりたいので作った

Last updated at Posted at 2016-10-25

ブログからの転載

経緯

PowerShell v2.0 の環境でリリース物のチェックが捗らなかったので、勢いに任せて作りました。
恐らく世界で 100 万人ぐらいの人が同じのを作っていることでしょう(てきとー

一応使い方

  • GitHub: miyamiya/mypss の右にある Clone or download をクリックして zip ファイルをダウンロードします。
  • ダウンロードしたライブラリにはセキュリティの観点からブロックが施されています ので 、ダウンロードした zip ファイルを右クリックしてプロパティを開き、ブロックの解除にチェックを入れて OK ボタンを押します
  • zip ファイルを解凍します
  • Get-Md5sum のディレクトリを $Env:PSModulePath で表示される何れかのディレクトリに配置します
    よくあるのは、 C:\Users\ユーザー名\Documents\WindowsPowerShell\Modules に配置

実行

# 対象がファイル
Get-Md5sum -Path hoge.txt
c32ec965db3295bad074d2afa907b1c3  hoge.txt

# 対象がディレクトリ内のファイル
Get-Md5sum -Path foo/

# チェックサムファイルを使い妥当性検査
Get-Md5sum -Path hoge.txt > checksum.txt
Get-Md5sum -Check checksum.txt

# Linux チックにエイリアスを使って実行
md5sum hoge.txt
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3