Skip to content

Instantly share code, notes, and snippets.

@jordanbaucke
Created July 26, 2014 14:24
Show Gist options
  • 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