在android中使用GPG解压缩文件

发布于 2024-12-20 14:03:30 字数 233 浏览 3 评论 0原文

在我的项目中,我将解压缩 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

缪败 2024-12-27 14:03:30

这是可能的,但你必须为此努力。有一个名为 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文