Skip to content

Instantly share code, notes, and snippets.

@jordanbaucke
Created July 26, 2014 14:24
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 jordanbaucke/8e426a2a2cc2a5fa9464 to your computer and use it in GitHub Desktop.
Save jordanbaucke/8e426a2a2cc2a5fa9464 to your computer and use it in GitHub Desktop.
String privateKeyPassword = "hongkong";
PGPPrivateKey pgpPrivKey = pgpSec
.extractPrivateKey(new JcePBESecretKeyDecryptorBuilder()
.setProvider("BC").build(privateKeyPassword.toCharArray()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment