在android中使用GPG解压缩文件
在我的项目中,我将解压缩 SD 卡中的文件。
但这些文件是使用客户端证书进行压缩的,以确保它们无法在无权查看文件的设备上解压缩。所以,使用 gpg 我们使用 gpg-zip 带有我们这边的客户端证书来创建 zip 文件 -- 客户端 证书已安装在设备上,因此 gpg-unzip 应该只能解压缩 如果有正确的证书。 “
所以,我必须使用 GPG 解压该文件。
这可能吗?如何?
提前致谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是可能的,但你必须为此努力。有一个名为 Bouncy Castle 的开源库,除其他外,它可以在 Android 上提供 GPG 解密。
这是另一个相关问题: Is there a good GnuPG crypto library对于 Java/Scala?
这是 Bouncy Castle 主页:http://www.bouncycastle.org/
这是一个使用中的示例:http://code.google.com/p/android-privacy-guard/source/browse/src/org/thialfihar/android/apg/Apg.java
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