如何在android中创建.Gzip文件,还加密和解密该文件?

时间:2022-10-16 04:32:36

I have an application in that i want to create a .Gzip file and store it into a sdacrd? After that for security purpose i want to encrypt that .Gzip file as well as decrypt.

我有一个应用程序,我想创建一个.Gzip文件并将其存储到一个sdacrd?之后出于安全目的,我想加密.Gzip文件以及解密。

How can it done?

怎么办?

1 个解决方案

#1


0  

You can take a look at GZIP Api here: http://developer.android.com/reference/java/util/zip/GZIPOutputStream.html

你可以在这里看看GZIP Api:http://developer.android.com/reference/java/util/zip/GZIPOutputStream.html

And also this question: http://developer.android.com/reference/java/util/zip/GZIPOutputStream.html

还有这个问题:http://developer.android.com/reference/java/util/zip/GZIPOutputStream.html

And you can encrypt/decrypt using following API: http://developer.android.com/reference/javax/crypto/package-summary.html

您可以使用以下API加密/解密:http://developer.android.com/reference/javax/crypto/package-summary.html

And here are examples: http://www.androidsnippets.com/encryptdecrypt-strings

以下是示例:http://www.androidsnippets.com/encryptdecrypt-strings

#1


0  

You can take a look at GZIP Api here: http://developer.android.com/reference/java/util/zip/GZIPOutputStream.html

你可以在这里看看GZIP Api:http://developer.android.com/reference/java/util/zip/GZIPOutputStream.html

And also this question: http://developer.android.com/reference/java/util/zip/GZIPOutputStream.html

还有这个问题:http://developer.android.com/reference/java/util/zip/GZIPOutputStream.html

And you can encrypt/decrypt using following API: http://developer.android.com/reference/javax/crypto/package-summary.html

您可以使用以下API加密/解密:http://developer.android.com/reference/javax/crypto/package-summary.html

And here are examples: http://www.androidsnippets.com/encryptdecrypt-strings

以下是示例:http://www.androidsnippets.com/encryptdecrypt-strings