コマンドプロンプト/ファイルのハッシュ値を求める・certutil
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* ファイルのハッシュ値を求める・certutil [#gd9e503f]
コマンドプロンプトで、 certutilコマンドで-hashfileオプシ...
このcertutilコマンドは、Base64のエンコードやデコードなど...
以下に ''certutil'' コマンドを使ってファイルのハッシュ値...
尚、本資料は Windows10 ver.1809 で動作確認を行いました。
#htmlinsertpcsp(win-top.html,win-sp.html)
#contents
* 関連記事 [#kb19391b]
-[[PowerShellでファイルのハッシュ値を確認する方法・Get-Fi...
* certutilコマンドについて [#zeb2798b]
certutilの-hashfileオプションについて以下のコマンドで調べ...
C:\Users\sakura>certutil /?
動詞:
<省略>
-decodehex -- 16 進エンコード ファイルをデコード...
-decode -- Base 64 エンコード ファイルをデコ...
-encode -- ファイルを Base 64 にエンコードし...
<省略>
-hashfile -- ファイルに暗号化ハッシュを生成し表...
<省略>
上記の通り、-hashfileオプションを使えば、ファイルのハッシ...
オプション -hashfileの使い方を調べてみます。
C:\Users\sakura>certutil -hashfile -?
使用法:
CertUtil [オプション] -hashfile InFile [HashAlgorithm]
ファイルに暗号化ハッシュを生成し表示します
オプション:
-Unicode -- リダイレクトされた出力を Unicode ...
-gmt -- 時刻を GMT で表示します
-seconds -- 時間を秒とミリ秒で表示します
-v -- メッセージを詳細に表示します
-privatekey -- パスワードと秘密キーのデータを表...
-pin PIN -- スマート カードの PIN
-sid WELL_KNOWN_SID_TYPE -- 数値 SID
22 -- ローカル システム
23 -- ローカル サービス
24 -- ネットワーク サービス
ハッシュ アルゴリズム: MD2 MD4 MD5 SHA1 SHA256 SHA384 SH...
CertUtil -? -- 動詞の一覧 (コマンドの一覧) ...
CertUtil -hashfile -? -- "hashfile" 動詞のヘルプ テキ...
CertUtil -v -? -- すべての動詞のヘルプ テキス...
上記により、使い方の構文は以下のようにようになります。~
CertUtil [オプション] -hashfile InFile [HashAlgorithm]
* 実際に使用し、ハッシュ値を求める [#hd082c67]
以下のようにファイル(hello.txt)を作成し、サポートしている...
上記のヘルプで出力されたアルゴリズムを試してみます。~
コマンドは以下の通りです。
certUtil -hashfile hello.txt MD2
certUtil -hashfile hello.txt MD4
certUtil -hashfile hello.txt MD5
certUtil -hashfile hello.txt SHA1
certUtil -hashfile hello.txt SHA256
certUtil -hashfile hello.txt SHA384
certUtil -hashfile hello.txt SHA512
** 実行結果 [#iabdd4ef]
hello.txtというテキストファイルを作成し、ハッシュ値を計算...
D:\work>echo hello world > hello.txt
D:\work>type hello.txt
hello world
D:\work>certUtil -hashfile hello.txt MD2
MD2 ハッシュ (対象 hello.txt):
293be77984faea7ecb5beaa93a80b150
CertUtil: -hashfile コマンドは正常に完了しました。
D:\work>certUtil -hashfile hello.txt MD4
MD4 ハッシュ (対象 hello.txt):
136798e830bc993b548c588793c67349
CertUtil: -hashfile コマンドは正常に完了しました。
D:\work>certUtil -hashfile hello.txt MD5
MD5 ハッシュ (対象 hello.txt):
d1b9c5009a6ddd7dacb45eddb78fa23a
CertUtil: -hashfile コマンドは正常に完了しました。
D:\work>certUtil -hashfile hello.txt SHA1
SHA1 ハッシュ (対象 hello.txt):
6288696b16c2ec9c48592475beb5e33dddf507bf
CertUtil: -hashfile コマンドは正常に完了しました。
D:\work>certUtil -hashfile hello.txt SHA256
SHA256 ハッシュ (対象 hello.txt):
0d74c782a0fd750336d9703eb9995985255bb5dd383c28d1828a6379...
CertUtil: -hashfile コマンドは正常に完了しました。
D:\work>certUtil -hashfile hello.txt SHA384
SHA384 ハッシュ (対象 hello.txt):
79b2dbd854939271dcbf2079f0b78b954e25d78fba65545ad5ade9e4...
CertUtil: -hashfile コマンドは正常に完了しました。
D:\work>certUtil -hashfile hello.txt SHA512
SHA512 ハッシュ (対象 hello.txt):
8db14cdb2b9231b09e188547b97998faf2822b860eb4fbf6ab747c09...
CertUtil: -hashfile コマンドは正常に完了しました。
以上、コマンドプロンプトでファイルのハッシュ値を求めるこ...
#htmlinsertpcsp(win-btm.html,win-sp.html)
終了行:
#navi(../)
* ファイルのハッシュ値を求める・certutil [#gd9e503f]
コマンドプロンプトで、 certutilコマンドで-hashfileオプシ...
このcertutilコマンドは、Base64のエンコードやデコードなど...
以下に ''certutil'' コマンドを使ってファイルのハッシュ値...
尚、本資料は Windows10 ver.1809 で動作確認を行いました。
#htmlinsertpcsp(win-top.html,win-sp.html)
#contents
* 関連記事 [#kb19391b]
-[[PowerShellでファイルのハッシュ値を確認する方法・Get-Fi...
* certutilコマンドについて [#zeb2798b]
certutilの-hashfileオプションについて以下のコマンドで調べ...
C:\Users\sakura>certutil /?
動詞:
<省略>
-decodehex -- 16 進エンコード ファイルをデコード...
-decode -- Base 64 エンコード ファイルをデコ...
-encode -- ファイルを Base 64 にエンコードし...
<省略>
-hashfile -- ファイルに暗号化ハッシュを生成し表...
<省略>
上記の通り、-hashfileオプションを使えば、ファイルのハッシ...
オプション -hashfileの使い方を調べてみます。
C:\Users\sakura>certutil -hashfile -?
使用法:
CertUtil [オプション] -hashfile InFile [HashAlgorithm]
ファイルに暗号化ハッシュを生成し表示します
オプション:
-Unicode -- リダイレクトされた出力を Unicode ...
-gmt -- 時刻を GMT で表示します
-seconds -- 時間を秒とミリ秒で表示します
-v -- メッセージを詳細に表示します
-privatekey -- パスワードと秘密キーのデータを表...
-pin PIN -- スマート カードの PIN
-sid WELL_KNOWN_SID_TYPE -- 数値 SID
22 -- ローカル システム
23 -- ローカル サービス
24 -- ネットワーク サービス
ハッシュ アルゴリズム: MD2 MD4 MD5 SHA1 SHA256 SHA384 SH...
CertUtil -? -- 動詞の一覧 (コマンドの一覧) ...
CertUtil -hashfile -? -- "hashfile" 動詞のヘルプ テキ...
CertUtil -v -? -- すべての動詞のヘルプ テキス...
上記により、使い方の構文は以下のようにようになります。~
CertUtil [オプション] -hashfile InFile [HashAlgorithm]
* 実際に使用し、ハッシュ値を求める [#hd082c67]
以下のようにファイル(hello.txt)を作成し、サポートしている...
上記のヘルプで出力されたアルゴリズムを試してみます。~
コマンドは以下の通りです。
certUtil -hashfile hello.txt MD2
certUtil -hashfile hello.txt MD4
certUtil -hashfile hello.txt MD5
certUtil -hashfile hello.txt SHA1
certUtil -hashfile hello.txt SHA256
certUtil -hashfile hello.txt SHA384
certUtil -hashfile hello.txt SHA512
** 実行結果 [#iabdd4ef]
hello.txtというテキストファイルを作成し、ハッシュ値を計算...
D:\work>echo hello world > hello.txt
D:\work>type hello.txt
hello world
D:\work>certUtil -hashfile hello.txt MD2
MD2 ハッシュ (対象 hello.txt):
293be77984faea7ecb5beaa93a80b150
CertUtil: -hashfile コマンドは正常に完了しました。
D:\work>certUtil -hashfile hello.txt MD4
MD4 ハッシュ (対象 hello.txt):
136798e830bc993b548c588793c67349
CertUtil: -hashfile コマンドは正常に完了しました。
D:\work>certUtil -hashfile hello.txt MD5
MD5 ハッシュ (対象 hello.txt):
d1b9c5009a6ddd7dacb45eddb78fa23a
CertUtil: -hashfile コマンドは正常に完了しました。
D:\work>certUtil -hashfile hello.txt SHA1
SHA1 ハッシュ (対象 hello.txt):
6288696b16c2ec9c48592475beb5e33dddf507bf
CertUtil: -hashfile コマンドは正常に完了しました。
D:\work>certUtil -hashfile hello.txt SHA256
SHA256 ハッシュ (対象 hello.txt):
0d74c782a0fd750336d9703eb9995985255bb5dd383c28d1828a6379...
CertUtil: -hashfile コマンドは正常に完了しました。
D:\work>certUtil -hashfile hello.txt SHA384
SHA384 ハッシュ (対象 hello.txt):
79b2dbd854939271dcbf2079f0b78b954e25d78fba65545ad5ade9e4...
CertUtil: -hashfile コマンドは正常に完了しました。
D:\work>certUtil -hashfile hello.txt SHA512
SHA512 ハッシュ (対象 hello.txt):
8db14cdb2b9231b09e188547b97998faf2822b860eb4fbf6ab747c09...
CertUtil: -hashfile コマンドは正常に完了しました。
以上、コマンドプロンプトでファイルのハッシュ値を求めるこ...
#htmlinsertpcsp(win-btm.html,win-sp.html)
ページ名: