holgern/beem

beem encrypted memos are not decryptable

Closed this issue · 3 comments

If providing a memo key through steem instance and transferring money with a memo beginning with '#' the transfer is sent and every seems fine. But decrypting the message is not possible. Steemit.com would show 'invalid memo' and beem throws an exeption like this:

 print(m.decrypt(memo=memo))
  File "E:\ProgramData\Anaconda3\lib\site-packages\beem\memo.py", line 260, in decrypt
    message
  File "E:\ProgramData\Anaconda3\lib\site-packages\beembase\memo.py", line 228, in decode_memo
    message = aes.decrypt(unhexlify(py23_bytes(message, 'ascii')))
  File "E:\ProgramData\Anaconda3\lib\site-packages\Cryptodome\Cipher\_mode_cbc.py", line 210, in decrypt
    raise ValueError("Data must be padded to %d byte boundary in CBC mode" % self.block_size)
ValueError: Data must be padded to 16 byte boundary in CBC mode

Works for me:
do you use non ascii signs?

No, I didn't. Currently it encrypts correctly.
But now the messages are cut at 34 characters. When sending
'# long text 123456789012345678901234567890' the message coming out is
'# long text 1234567890123456789012'.

Should be fixed by now (release 0.23.12)