Skip to content

Instantly share code, notes, and snippets.

@GordonOus
Created September 16, 2021 20:32
Show Gist options
  • Save GordonOus/decdc407c947814a44ea3939c83efc04 to your computer and use it in GitHub Desktop.
Save GordonOus/decdc407c947814a44ea3939c83efc04 to your computer and use it in GitHub Desktop.
ssh-keygen -e -f 'bruce_rsa_6e7ecd53b443a97013397b1a1ea30e14.pub' -m 'PKCS8' > bruce.pub
openssl rsa -pubin -in bruce.pub -noout -modulus | cut -d '=' -f2 | xargs echo "ibase=16; $1"| bc | tr -d '\' | tr -d '\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment