JAVA AES 256&公钥加密 [英] JAVA AES 256 & Public Key Encryption

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

问题描述

我们的客户之一要求我们使用AES 256&公钥加密
服务器端(Web服务)是基于java的。
客户端可以是java或.Net。

One of our customers requires us to encrypt a message return from our web service using AES 256 & Public Key Encryption Server Side (web service) is java based. Client side could be java or .Net.

我不熟悉任何加密方法,无法找到能让我开始的任何示例...

I'm not familiar with any of the encryption methodology and could not find any example that will get me started...

甚至可以实现AES 256&公钥加密?

Can this even be implemented AES 256 & Public Key Encryption ?

它如何工作(公钥加密)?

How does it work (Public Key Encryption) ?

请指点一个例子这将让我开始。

Please direct me to an example that will get me started.

推荐答案

AES256 是一个特定的对称加密方案,其中要求通信方预先共享加密密钥。另一方面,公钥密码术是一种非对称加密原则,每个通信方都有每个共享一个公钥和一个秘密密钥。后者的一个典型例子是 RSA

AES256 is a specific symmetric encryption scheme, which requires the communicating parties to have pre-shared an encryption key. Public-key cryptography on the other hand is an asymmetric encryption principle, where each communicating party has a public key shared with every one and a private key which he keeps a secret. A typical example for the latter would be RSA.

对称和非对称加密都有利弊,你应该先弄清楚你(或你的客户)想要什么。然后,当实现任何密码术时,始终要确保使用公共的库,并且永远不会尝试自己实现任何加密算法。这些话题的小错误往往导致完全不安全。

Both symmetric and asymmetric encryption have there pros and cons, you should first figure out what you (or your client) want. Then, when implementing any cryptography always be sure to use common libraries and never (ever) try to implement any cryptography algorithms yourself. Small mistakes in these topics often lead to complete insecurity.

这篇关于JAVA AES 256&公钥加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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