New port: security/python-gnupg simple python wrapper for gnupg
Kyle Williams
willikyl at gmail.com
Fri May 31 06:39:59 UTC 2013
Howdy,
python-gnupg is a python wrapper for the gnupg library. It is a separate
project from py-gnupg, but offers similar functionality. You can read
more about it here:
https://code.google.com/p/python-gnupg/
http://pythonhosted.org/python-gnupg/
Here's some example code just for the fun of it:
#!/usr/bin/env python2
import gnupg
from os import popen
gnupgDir = "/home/user/.gnupg"
encryptedFile = "/home/user/fake.gpg"
gpg = gnupg.GPG(gnupghome=gnupgDir)
stream = open(encryptedFile, "rb")
decryptedData = str(gpg.decrypt_file(stream)).split()
print(decryptedData)
- Kyle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130530/3680c119/attachment.sig>
More information about the freebsd-ports
mailing list