Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

"bad encrypted message" 2.0.6

Open recap opened this issue 12 years ago • 12 comments

still get the "bad encrypted message" on the new 2.0.6 release

recap avatar Apr 05 '14 10:04 recap

Had this too. Try to unregister for push and reregistering. Worked for me.

McLoo avatar Apr 05 '14 10:04 McLoo

Does it work when you "end secure session" and start texting again, after that?

exploide avatar Apr 05 '14 10:04 exploide

seems the "end secure session" fixed the issue

On 5 April 2014 12:47, Jannik [email protected] wrote:

Does it work when you "end secure session" and start texting again, after that?

Reply to this email directly or view it on GitHubhttps://github.com/WhisperSystems/TextSecure/issues/1296#issuecomment-39634651 .

REg.

recap avatar Apr 05 '14 11:04 recap

I expected this, since a friend of mine told me he saw that "bad encrypted" message, too and it was gone after I ended the secure session. (I assume that triggers the negotiation of a new session key)

But I don't how why this is necessary at this point. It would be better if TS could recognize such situations and automatically do what needs to be done. So the user is not bothered with a message he probably don't understand.

exploide avatar Apr 05 '14 12:04 exploide

This also occurs on my device. People I send messages to frequently get bad encrypted message (the message itsself arrives, but the hint is given). The error occurs for approx. 30% of the messages sent and also occurs when i send messages to myself sometimes. Could provide my logfiles to someone but wont publish them as there are phone numbers in them...

JoEiner avatar Apr 05 '14 12:04 JoEiner

@recap Yes it's possible that existing sessions were corrupted. I'd mostly be concerned if new sessions post upgrade to 2.0.6 end up in that state, when both parties are running 2.0.6.

@johannes1 Is this true for you on new sessions post upgrade to 2.0.6?

moxie0 avatar Apr 05 '14 16:04 moxie0

@johannes1 If both parties are running 2.0.6 and getting "bad encrypted message" with a session created after both upgraded to 2.0.6, I'll need to see the log.

moxie0 avatar Apr 05 '14 17:04 moxie0

@moxie0 I think the problem is still present with 2.0.6, however it manifests differently:

As long is a continue using existing encrypted sessions, recipients of my messages still get "bad encrypted message..." After I reestablished the sessions I get an error on the sender side: Briefly after the message has been sent, the blue message turns green and i can "tap for insecure fallback".

I am testing sending messages to myself, so both clients have 2.0.6.

Brief addition to that: i also got a "bad encrypted message..." once with a newly established session, however cannot reproduce this

JoEiner avatar Apr 05 '14 17:04 JoEiner

As long is a continue using existing encrypted sessions, recipients of my messages still get "bad encrypted message..."

Not concerned about this.

I am testing sending messages to myself, so both clients have 2.0.6.

When you say "sending messages to myself," do you mean literally sending a message from a device to that same device's own phone number? That's not really supported, so yeah eventually you'll exhaust your prekey rate limit and have to fall back to unencrypted SMS.

moxie0 avatar Apr 05 '14 17:04 moxie0

@moxie0 Yes, sending messages to the same device. After terminating the secure session once more the problem is now gone. Seems the problem is fixed for me.

JoEiner avatar Apr 05 '14 17:04 JoEiner

@johannes1 FYI you're not going to be able to reliably send messages to yourself.

moxie0 avatar Apr 05 '14 17:04 moxie0

@moxie0 Works suprisingly good in most cases ;-)

JoEiner avatar Apr 05 '14 17:04 JoEiner