Android - 加密和解密 [英] Android - encryption and decryption

查看:124
本文介绍了Android - 加密和解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过HTTPurlConnection下载apk,我想知道,如果在网页一侧有可能的加密和用私钥和公钥下载后解密。我知道这是在Windows Mobile智能手机中使用的,但是可以用Android来做同样的事情吗?



谢谢

解决方案

为什么不使用安全HTTP(HTTPS)?不需要使用密钥来解决问题,它会为您加密下载。



使用自己的密钥的问题是解密密钥将在您的应用程序中,而任何想要解密流的人都很容易访问 - 这绝对不会安全,因为Android应用程序相对容易进行逆向工程(Proguard混淆会有所帮助)


I am downloading apk by HTTPurlConnection and I am wondering, if there are possibilites of encryption on the side of the web and decryption after download with private and public keys. I know this was used in Windows Mobile smartphones, but is is possible to do the same with Android?

Thanks

解决方案

Why not use secure HTTP (HTTPS) instead? No need to mess about with keys, and it will encrypt the download for you.

The problem with using your own keys is the decryption key will be in your app, and very easily accessible to anyone who wants to decrypt the stream - it's never going to be that secure as Android apps are relatively easy to reverse-engineer (Proguard obfuscation will help a bit)

这篇关于Android - 加密和解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆