Sorry ... PGP -__-"
Main Topics
Browse All TopicsHi all,
Appreciate if someone can guide me on how to use PGP to encrypt a file using Java.
I am unable to access the following site (which most experts have recommended)
http://www.cryptography.ch
i guess the link is no longer valid.
hopefully someone can give me some guidance on this.
Thanks in advance :)
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
i followed the instructions given, but having some doubts on this portion:
INSTALLATION INSTRUCTIONS
==============
Make sure you have Java installed.
Edit the Makefile and change to two Java Include paths according to your
settings.
javac PGPi.java
javah -jni PGPi
make PGPiWin
This is what i did in command prompt:
The code is using JNI technology, which means the encryption part is in C,C++ code and you have to compile the code using make command (on linux) or any C compiler if you have modify something in the C,C++ code. You will get a new version of dll file for use.
However, you don't need to compile the code because there is a binary file for download (pgpajava.zip).
You need 4 files in the same directory of your class:
pgpi.dll
PGPi.class
pubring.pgp
secring.pgp
// Test.java
hi gnoon,
I've tried the above example u provided and i encountered the following error:
Cannot generate key: PGPi Error Code 1: Unable to open pubring.pgp
It's weird because the following flies are all in the same folder:
pgpi.dll
PGPi.class
p
secring.pg
Test.clas
Did you encounter this while trying out?
Facing some problems when i tried to integrate this into my dynamic web project (using Eclipse IDE):
java.lang.UnsatisfiedLinkE
com.jjsea.jjcs.singtel.ppv
com.jjsea.jjcs.singtel.ppv
com.jjsea.jjcs.singtel.ppv
javax.servlet.http.HttpSer
Here's the directory structure for my project
Classes:
<project name>\build\classes\com\jco
PGPServlet.class
PGPi.class
- pgpi.dll
- pubring.pgp
- secring.pgp
Can kindly advice me on this?
thanks :)
Business Accounts
Answer for Membership
by: gnoonPosted on 2009-03-27 at 00:21:31ID: 23998589
I donot familiar with GPG, but this link may help you http://www.iam.unibe.ch/~j ampen/pgpj ava/index. html