开发者

Port knocking and RSA encryption

I am doing on my project and ther开发者_如何学JAVAe is about port knocking. I have 3 files that separated in server side and client. In the server contains : portknocking server as a daemon and configuration file [contains sequence of port that must be satisfied and many other configuration detail] In the client contains : portknocking client.

Is there possible to encrypt sequence port number in file configuration using RSA..If so,, how to do that??

thank you

PS: I am running daemon at server[it reads file configuration] and then I run program on client and specify sequence port number [if port number sequence is same with configuration file then it is connected]..


Is there possible to encrypt sequence port number in file configuration using RSA.

Yes.

how to do that??

You might try a bit of searching for a python rsa library.

However, if you're planning on doing this on the client side, then realize in order for the client program to decrypt the data, it will have to have a decryption key. If the client program has the decryption key, then anyone with a text editor also has the decryption key (and the code to decrypt it).

If you really meant RSA encryption, take a look at PyCrypto.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜