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:
except IOError:
pid = None
return pid
def is_process_running(self):
pid = self.get_pid()
if pid:
......
......@@ -332,4 +332,5 @@ def B64AESDecrypt(key, iv, data):
decrypted = cipher.decrypt(decoded)
except:
decrypted = ""
return decrypted
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