Commit 40418db6 authored by nextime's avatar nextime

Avoid stripping and padding on empty messages in AES256

parent 794d3b94
...@@ -133,6 +133,7 @@ class Daemonizer: ...@@ -133,6 +133,7 @@ class Daemonizer:
except IOError: except IOError:
pid = None pid = None
return pid return pid
def is_process_running(self): def is_process_running(self):
pid = self.get_pid() pid = self.get_pid()
if pid: if pid:
......
...@@ -332,4 +332,5 @@ def B64AESDecrypt(key, iv, data): ...@@ -332,4 +332,5 @@ def B64AESDecrypt(key, iv, data):
decrypted = cipher.decrypt(decoded) decrypted = cipher.decrypt(decoded)
except: except:
decrypted = "" decrypted = ""
return decrypted
return StripPadding(decrypted, INTERRUPT, PAD) return StripPadding(decrypted, INTERRUPT, PAD)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment