I tried to use the gnupg.py module encryption decryption function named
" def test_encryption_and_decryption(self): "
Could i use this function by passing the key or fingerprint retrieved from public key server.
I am getting the key by this :
retk = urllib.urlopen('http://pool.sks-keyservers.net:11371/pks/lookup
op=get&search=hex format of key')
pub_key = retk.read()
i also tried to pass the fingerprint in encrypt method :
data = "Hello, world!"
edata = str(self.gpg.encrypt(data, fingerprint))
print edata
Not getting the way how to do .Is somebody help me out by giving their valuble and effective solution/suggestions.
thanks!