summaryrefslogtreecommitdiff
path: root/bin/hash64
blob: 409f9af6cbcc2926e834b3a99b763a2bdba2977d (plain)
1
2
3
4
5
6
#!/bin/sh

ruby -rdigest -rbase64 -e '
    d = Digest::SHA256.new
    d << $_ while ARGF.gets
    print Base64.urlsafe_encode64(d.digest)' "$@"