From b1fffc3a1b2dbbb807213b85f538e59251b9bf35 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 28 Mar 2014 22:32:14 +0100 Subject: Remove bad whitespaces Merged vuolter/pyload@00288e6 --- module/lib/beaker/crypto/pycrypto.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/lib/beaker/crypto/pycrypto.py') diff --git a/module/lib/beaker/crypto/pycrypto.py b/module/lib/beaker/crypto/pycrypto.py index a3eb4d9db..1939555ce 100644 --- a/module/lib/beaker/crypto/pycrypto.py +++ b/module/lib/beaker/crypto/pycrypto.py @@ -9,16 +9,16 @@ try: def aesEncrypt(data, key): cipher = aes.AES(key) return cipher.process(data) - + # magic. aesDecrypt = aesEncrypt - + except ImportError: from Crypto.Cipher import AES def aesEncrypt(data, key): cipher = AES.new(key) - + data = data + (" " * (16 - (len(data) % 16))) return cipher.encrypt(data) -- cgit v1.2.3