Skip to content

user9209/JavaWrapperGnuPG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

JavaWrapperGnuPG

tested with GnuPG 2.2.17 - libgcrypt 1.8.4

Usage:

// set gpg binary, homeDir is optinal, can be null
GnuPG2 gpg = GnuPG2(String binGPG, String homeDir)
GnuPG2 gpg = GnuPG2(String homeDir)

// list keys
gpg.listKeys()

// import key
gpg.importKeyFile(keyFileSecret)

// get fingerprint
gpg.fingerprintKeyFile(keyFileSecret)
Files.readString(keyData)

// encrypt
String ciphertext = gpg.encrypt(data, identityFingerprintOrMail);

// decrypt
String plaintext = gpg.decrypt(ciphertext);

Well known tasks

None

Related work

Yaniv Yemini @2004

John Anderson @2002

About

tested with GnuPG 2.2.17 - libgcrypt 1.8.4

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages