summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-02-13 12:46:48 -0200
committerdrebs <drebs@leap.se>2013-02-13 12:46:48 -0200
commit82006e3b7e502b9fb4e45a00fdf332e4af5fc752 (patch)
tree5e1ce005cfd934c10b220623eb403ffe987c4493 /util.py
parentecf568431319b4e81bc077141048d0b7f1e0964d (diff)
Add/fix doc for soledad modules.
Diffstat (limited to 'util.py')
-rw-r--r--util.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/util.py b/util.py
index 4bc4d2c9..56d1a9a0 100644
--- a/util.py
+++ b/util.py
@@ -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,