dabo Commit
Revision 5586
Date: 2010-01-03 18:08:50 -0800 (Sun, 03 Jan 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5586
Changed:
U trunk/dabo/lib/SimpleCrypt.py
Log:
Moved the check for _cryptoProvider to the beginning of the decrypt method.
Diff:
Modified: trunk/dabo/lib/SimpleCrypt.py
===================================================================
--- trunk/dabo/lib/SimpleCrypt.py 2010-01-04 00:59:22 UTC (rev 5585)
+++ trunk/dabo/lib/SimpleCrypt.py 2010-01-04 02:08:50 UTC (rev 5586)
@@ -74,10 +74,11 @@
if not aString:
return ""
try:
+ decryptMethod = self._cryptoProvider.decrypt
decString = base64.b64decode(aString)
padlen = int(decString[0])
encval = decString[1:]
- ret = self._cryptoProvider.decrypt(encval)
+ ret = decryptMethod(encval)
if padlen:
ret = ret[:-padlen]
return ret
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]