summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
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,