Created
October 23, 2019 02:44
-
-
Save autch/d671e7e7cde8320320c9227266419043 to your computer and use it in GitHub Desktop.
SHA256 をファイル名に使える Base64 エンコード
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby -rdigest/sha2 -rbase64 -e "puts Base64.urlsafe_encode64(Digest::SHA256.file(ARGV.shift).digest)" -- foo.file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment