安全的Andr​​oid /加密套接字 [英] Android secure/encrypted sockets

查看:196
本文介绍了安全的Andr​​oid /加密套接字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建的使用标准,非加密套接字和成功地连接到服务器不加密的android应用Java服务器。

I created a java server that uses standard, non-encrypted sockets and an android application that connects successfully to the server without encryption.

我想补充额外的加密,这样我可以客户端和服务器之间传输的密码的安全性。

I would like to add extra encryption so that I can transfer passwords security between client and server.

什么是做到这一点的最好/最简单的方法是什么?我变得很迷茫与密钥库和所有的(做我需要他们?)。我无法找到什么,我需要的任何地方例子很好的解释。

What's the best/easiest way to do this? I'm getting very confused with keystores and all that (do I need them??). I can't find a good explanation with examples of what I need anywhere.

希望我得到一个很好的答案:)

Hopefully I get a good answer :)

推荐答案

您可以使用SSL套接字连接来实现你正在尝试做的。有关如何做到这一点的例子,你可以看看在OpenMobster云平台codeBase的类之一。

You can use a SSL socket connection to achieve what you are trying to do. For an example of how to do this you can look at one of the classes in the OpenMobster Cloud Platform codebase.

其位于:<一href=\"http://openmobster.google$c$c.com/svn/trunk/cloud/android/connection/src/main/java/org/openmobster/core/mobileCloud/android/module/connection/NetworkConnector.java\" rel=\"nofollow\">http://openmobster.google$c$c.com/svn/trunk/cloud/android/connection/src/main/java/org/openmobster/core/mobileCloud/android/module/connection/NetworkConnector.java

这是在Android和经过测试的工作。

This is on Android and has been tested to work

好运!!!!

这篇关于安全的Andr​​oid /加密套接字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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