Skip to content

Instantly share code, notes, and snippets.

@Jcpetrucci
Last active August 29, 2015 14:16
Show Gist options
  • Save Jcpetrucci/cbc062064caf9df79d9d to your computer and use it in GitHub Desktop.
Save Jcpetrucci/cbc062064caf9df79d9d to your computer and use it in GitHub Desktop.
Manually produce a keybase.io hash
#!/bin/bash
# Original: https://github.com/keybase/keybase-issues/issues/1126#issuecomment-58430029
gpg --dearmor | \
sha256sum | \
awk ' { print "0:", $1 } ' | \
xxd -g0 -r -c256 | \
base64 | \
head -c 43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment