LoginSignup
0
0

More than 5 years have passed since last update.

sha256 の計算(macOS)

Posted at

こんにちは。
macOS 上で sha256 値などを計算させてみました。

$ echo -n '' | gzip > empty.gz
$ md5 empty.gz
MD5 (empty.gz) = 14248b891e6bb3dd955f1c53be538f39
$ openssl sha1 empty.gz 
SHA1(empty.gz)= 3bf5e0a5f1b2a8f0a8826a3c0a0d0c16502953fe
$ shasum -a 1 empty.gz
3bf5e0a5f1b2a8f0a8826a3c0a0d0c16502953fe  empty.gz
$ shasum -a 256 empty.gz
ecfd46aa0435a3a9b1c5d6d5e29c0e92bbfd75ee2f5894196e0028574b35136f  empty.gz
$ brew install md5sha1sum
$ md5sum empty.gz
14248b891e6bb3dd955f1c53be538f39  empty.gz
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