LoginSignup
0
0

More than 1 year has passed since last update.

コマンドで文字列をmd5sum

Last updated at Posted at 2022-05-16

ターミナル上で文字列のmd5sumをサクッと取る方法(備忘)。

// コマンド存在確認
which md5sum

// Macには入ってなかったので入れる
brew install coreutils

// 実行
echo -n "test" | md5sum

// 結果
// 098f6bcd4621d373cade4e832627b4f6 

echo -nにしないと末尾の改行も含めてmd5ハッシュ化されてしまいます。注意

0
0
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
0
0