base64url (87B)
1 #!/usr/bin/env bash 2 3 set -eou pipefail 4 5 base64 -w10000 "$@" | tr '/+' '_-' | tr -d '='