views:

276

answers:

1

I am doing on my project and there 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]..

+1  A: 

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.

Seth