[英]How to create a .Gzip file in android and also Encrypt and Decrypt that file?
I have an application in that i want to create a .Gzip file and store it into a sdacrd? 我有一个应用程序,我想创建一个.Gzip文件并将其存储到一个sdacrd? After that for security purpose i want to encrypt that .Gzip file as well as decrypt. 之后出于安全目的,我想加密.Gzip文件以及解密。
How can it done? 怎么办?
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.