Skip to content

Instantly share code, notes, and snippets.

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