[英]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.
通用问题得到通用答案。
http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/ http://andreas.louca.org/2008/03/20/java-rsa-encryption-an-example/
http://www.javamex.com/tutorials/cryptography/rsa_encryption.shtml http://www.javamex.com/tutorials/cryptography/rsa_encryption.shtml
PS What is the US law on providing Encryption howto on this site ? PS:在此站点上提供加密方法的美国法律是什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.