File Encryption

I have a xml file in digi gateway. I need to encrypt the file before it being transmitted. I have implemented pycrpto in many cases.

Is is possible to use pycrypto in digi gateway to encrypt data. Is there any packages for digi device which uses pycrypto.

Or is there any way to implement public key cryptography in the gateway.