简体   繁体   English

如何使用RSA加密Java对象

[英]how to encrypt java object using RSA

大家好,我可以告诉我如何加密和解密Java对象

First of all, the object should be serializable. 首先,对象应该可序列化。 Then, for an example using Cipher and the DES algorithm, see http://www.exampledepot.com/egs/javax.crypto/EncryptObject.html 然后,有关使用Cipher和DES算法的示例,请参见http://www.exampledepot.com/egs/javax.crypto/EncryptObject.html

I'll leave it as an exercise to figure out how to change this to use RSA. 我将把它留作练习,以弄清楚如何更改它以使用RSA。

If you need something more specific, please add on to your question; 如果您需要更具体的内容,请补充您的问题; generic questions get generic responses. 通用问题得到通用答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM