5

In my project i am going to un-zip the file which is in the SD-Card.

But the files are zipped using a client certificate to ensure that they zip cannot be unzipped on a device that is not authorized to see files. So, using gpg we use gpg-zip with client certificate on our side to create zip file -- the client certificate is installed on device so gpg-unzip should be able to only unzip if it has correct certificate. "

So, I have to un-zip the file using GPG.

Is it possible ? and how ?

Thanks in Advance.

surendra
  • 2,217
  • 7
  • 34
  • 42

1 Answers1

0

It's possible, but you have to work for it. There is an open source library called Bouncy Castle which, among other things, can provide GPG decryption on Android.

Here's another related question: Is there a good GnuPG encryption library for Java/Scala?

Here's the Bouncy Castle homepage: http://www.bouncycastle.org/

And here's an example of it in use: http://code.google.com/p/android-privacy-guard/source/browse/src/org/thialfihar/android/apg/Apg.java

Community
  • 1
  • 1
jonvuri
  • 5,738
  • 3
  • 24
  • 32