diff --git a/kakushi/dhcrypto.py b/kakushi/dhcrypto.py index 860dbff..e3c946e 100644 --- a/kakushi/dhcrypto.py +++ b/kakushi/dhcrypto.py @@ -78,4 +78,4 @@ class Session: aes = algorithms.AES(self.aes_key) decryptor = Cipher(aes, modes.CBC(aes_iv), default_backend()).decryptor() decrypted_secret = decryptor.update(secret) + decryptor.finalize() - return decrypted_secret.rstrip(b'\x0f') + return decrypted_secret.rstrip(b'\x01\x0f')