Skip to content

Instantly share code, notes, and snippets.

@angeloped
Last active February 12, 2020 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angeloped/6b066a986b8e27fe6faa991ae67646d0 to your computer and use it in GitHub Desktop.
Save angeloped/6b066a986b8e27fe6faa991ae67646d0 to your computer and use it in GitHub Desktop.
Public and Private Key PGP Validator | RegEx
/^(-----BEGIN PGP PUBLIC KEY BLOCK-----).*([a-zA-Z0-9//\n\/\.\:\+\ \=]+).*(-----END PGP PUBLIC KEY BLOCK-----)$|^(-----BEGIN PGP PRIVATE KEY BLOCK-----).*([a-zA-Z0-9//\n\/\.\:\+\ \=]+).*(-----END PGP PRIVATE KEY BLOCK-----)$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment