diff options
author | drebs <drebs@leap.se> | 2013-02-13 12:46:48 -0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-02-13 12:46:48 -0200 |
commit | 82006e3b7e502b9fb4e45a00fdf332e4af5fc752 (patch) | |
tree | 5e1ce005cfd934c10b220623eb403ffe987c4493 /util.py | |
parent | ecf568431319b4e81bc077141048d0b7f1e0964d (diff) |
Add/fix doc for soledad modules.
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,7 @@ +""" +Utilities for Soledad. +""" + import os import gnupg import re @@ -28,6 +32,9 @@ class GPGWrapper(gnupg.GPG): def encrypt(self, data, recipient, sign=None, always_trust=True, passphrase=None, symmetric=False): + """ + Encrypt data using GPG. + """ # TODO: devise a way so we don't need to "always trust". return super(GPGWrapper, self).encrypt(data, recipient, sign=sign, always_trust=always_trust, @@ -35,6 +42,9 @@ class GPGWrapper(gnupg.GPG): symmetric=symmetric) def decrypt(self, data, always_trust=True, passphrase=None): + """ + Decrypt data using GPG. + """ # TODO: devise a way so we don't need to "always trust". return super(GPGWrapper, self).decrypt(data, always_trust=always_trust, |