summaryrefslogtreecommitdiff
path: root/src/leap/soledad/backends
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2012-12-18 18:57:01 -0200
committerdrebs <drebs@leap.se>2012-12-18 18:57:01 -0200
commit4cd81148ec25cd6f1a9498345c7405a4d37a4012 (patch)
treef798e4bfbd34c271187dd0bd00bce09fc6ff1852 /src/leap/soledad/backends
parentc0544a775a14f6d60b3f159c66eaff2332732346 (diff)
Correct typ0
Diffstat (limited to 'src/leap/soledad/backends')
-rw-r--r--src/leap/soledad/backends/leap.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/leap/soledad/backends/leap.py b/src/leap/soledad/backends/leap.py
index 4a496d3e..c019ed3f 100644
--- a/src/leap/soledad/backends/leap.py
+++ b/src/leap/soledad/backends/leap.py
@@ -37,8 +37,8 @@ class LeapDocument(Document):
"""
if not self._soledad:
raise NoSoledadInstance()
- cyphertext = self._soledad.encrypt_symmetric(self.get_json())
- return json.dumps({'_encrypted_json' : cyphertext})
+ ciphertext = self._soledad.encrypt_symmetric(self.get_json())
+ return json.dumps({'_encrypted_json' : ciphertext})
def set_encrypted_json(self, encrypted_json):
"""
@@ -46,8 +46,8 @@ class LeapDocument(Document):
"""
if not self._soledad:
raise NoSoledadInstance()
- cyphertext = json.loads(encrypted_json)['_encrypted_json']
- plaintext = self._soledad.decrypt_symmetric(cyphertext)
+ ciphertext = json.loads(encrypted_json)['_encrypted_json']
+ plaintext = self._soledad.decrypt_symmetric(ciphertext)
return self.set_json(plaintext)