View Single Post
Posts: 13 | Thanked: 26 times | Joined on Sep 2015 @ Prague
#1105
Originally Posted by ceene View Post
Oh, I see. Yappari simply doesn't support encrypted messages, so even though it receives that, it simply doesn't know what to do with it, so it simply ignores all that.

That's something doable, I guess, but I don't know the cypher nor how are the keys created and shared, etc... If anyone knows I can take a look at how much would take the implementation of this.
You are right. I checked connection.cpp And method processing messages (schematic version below) doesn't process <enc> child of <message>.
Code:
void Connection::parseMessageInitialTagAlreadyChecked(ProtocolTreeNode& messageNode)
    if (typeAttribute == "text" || typeAttribute == "media")
    {
	    if (child.getTag() == "body")
		else if (child.getTag() == "media")
		else if (child.getTag() == "notify")
		else if (child.getTag() == "x")
		else if (child.getTag() == "received")
	}
There are WhatsApp database decryptors on internet (able to decode encrypted messages using key from android device) so if anyone would like to extend this method for if (child.getTag() == "enc"), good luck