English 中文(简体)
2. 与 Android、 iPhone、Windows 移动式操作的信号算法
原标题:Signing algorithm that works with Android, Java, iPhone, Windows Mobile

是否有任何人知道将与所有这些平台合作签署算法。

服务器将通过 Java方案生成一个公私营钥匙。 因此,客户应用(移动电话)需要从服务器上发出使用私人钥匙(公共钥匙储存在装置上)签字的信息。

然而,以下价值观与安妮和 Java合作,我不清楚它们如何与其他平台合作。

    //For the server signed message
public static final int RSA_KEY_SIZE = 2048;
public static final String SIGNATURE_ALGORITHM = "SHA256withRSA";
public static final String RSA = "RSA";
public static final String PROVIDER = "BC"; //Bouncy Castle

    //For hashing sensitive data over the network
public static final String SECURE_RANDOM_ALGORITHM = "SHA1PRNG";
最佳回答

标准化加密算法的一个要点是,无论使用何种代码来执行这些算法,这些算法是互操作的。 例如,RSA的加密信息可以通过在Java书写的服务器生成,并由网络用户加密(关于网络服务器如何与使用HTTPS的浏览器进行通信的思考——没有限制你使用哪一种语言书写服务器/浏览器。)

视窗移动,有Bouncy城堡 加密软件执行(Compact Framework)。 关于Mitine-C代码,可在查询。

问题回答

You incorrectly understand asymmetric cryptography. To encrypt message, server should use public key of the client, and with his private key client will be able to decrypt message. What is done with RSA private key is called signing . In case you need to use encryption with only one hard-coded key, you can use symmetric cryptography (for instance, AES).





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签