Skip to content

Instantly share code, notes, and snippets.

@rdapaz
Last active June 11, 2022 14:18
Show Gist options
  • Save rdapaz/4a4240da32ceccb14ad692c282f6491c to your computer and use it in GitHub Desktop.
Save rdapaz/4a4240da32ceccb14ad692c282f6491c to your computer and use it in GitHub Desktop.
Generate Cisco secret with salt

This is the Linux command to precompute a secret for a Cisco switch / router

username cisco privilege 15 secret 5 $1$6527$WiNuPN8KMuraxwrpieZhK1

The salt is specified where the dots are $1$....$

$ openssl passwd -1 -salt pdQG -table foobar
foobar  $1$pdQG$0WzLBXV98voWIUEdIiLm11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment