JAVA AES 256 & Public Key Encryption [closed]

人走茶凉 提交于 2019-12-02 19:06:46

问题


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...

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.


回答1:


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.



来源:https://stackoverflow.com/questions/16812938/java-aes-256-public-key-encryption

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!