Skip to content

Instantly share code, notes, and snippets.

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