Skip to content

Instantly share code, notes, and snippets.

@autch
Created October 23, 2019 02:44
Show Gist options
  • Save autch/d671e7e7cde8320320c9227266419043 to your computer and use it in GitHub Desktop.
Save autch/d671e7e7cde8320320c9227266419043 to your computer and use it in GitHub Desktop.
SHA256 をファイル名に使える Base64 エンコード
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