开发者

Multiple Encryption in java

Hi I was looking for an example that will achieve multiple encryption in java , i.e encryption same piece of string or data multiple times so that i have layers of encry开发者_如何学运维ption.

The reason I want to achieve this is,As part of my university project I am trying to send some data from one machine to 3 hops and then destination. When sender sends it, it encrypts it with public key of destination ,encrypts again with 3rd hop's public key and so on, so when 1st hops recives it, it can only decrypt one layer and will find instrucitons to send to next hop, 2nd hop repeats the same process and passess it on to 3rd and same again untill it gets destination. This is so that none of the hops in the middle are able to see the data.

Thanks


There is nothing special about an encrypted file, it is just a stream of bytes. Encrypt it as you would any other file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜