From ae43837a7bec8ef554287e4cecebd18c577c5dfe Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 30 Jan 2014 14:57:32 +0100 Subject: [PATCH] use standard format for private key passed to decrypt --- lib/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/commands.py b/lib/commands.py index bc307d24d..00f60b53d 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -395,9 +395,9 @@ class Commands: def encrypt(self, pubkey, message): return EC_KEY.encrypt_message(message, pubkey.decode('hex')) - def decrypt(self, private_key, message): - eck = EC_KEY(private_key.decode('hex')) - decrypted = eck.decrypt_message(message) + def decrypt(self, secret, message): + ec = regenerate_key(secret) + decrypted = ec.decrypt_message(message) return decrypted[0]