CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/share/doc/pygpgme-0.1/examples/
Upload File :
Current File : //proc/2/root/usr/share/doc/pygpgme-0.1/examples/encrypt.py

import gpgme
from StringIO import StringIO

ctx = gpgme.Context()
ctx.armor = True

key = ctx.get_key('B10A449E4CFB9A60A2DB996701AF93D991CFA34D')

plain = StringIO('Hello World\n')
cipher = StringIO()

ctx.encrypt([key], 0, plain, cipher)

print cipher.getvalue()

Copyright 2K16 - 2K18 Indonesian Hacker Rulez