I am using Whatsapp PHP api to send and receive messages.
When using my own phone number I am getting the message correctly, but using a friend's number sends an encrypted message. I got the issue on github.
$debug = true;
$username = '91xxxxxxxxxxx';
$password = "L9Djoxxxx+/HxxxxxWK3X24=";
$nickname = 'SG';
$w = new WhatsProt($username, $nickname, $debug);
$w->connect();
$w->loginWithPassword($password);
$w->sendSetProfilePicture("demo/venom.jpg");
$s= $w->pollMessage();
for($i=0;$i<20;$i++){
print($m->NodeString(""));
}
Here is one encoded message:
<message from="[email protected]" type="text" id="wsyC+kzW5JJv2" offline="0" t="1444469647" notify="Bikash">
<enc v="1" type="pkmsg">3ýš²!øbƒÈÌl`¹$E š‚A¹“"´®ä¾ì3Žvfx! ?CgŸÙTׂT¯Œp¶ìì.»ÓÊ¿~†6â…<"B3
!¶ÇIOÂóK†B(A=q”Ysþ¥(nrÎÏ(™‚jg"$4b’¸=Ç—j|HûS§³R(„ͼ0</enc>
</message>
According to the API changes (website) this issue started 17 nov.
17 Nov, 2014 Better encryption, more work for us!
Is not as easy to implement the 'encrypt' feature as i thought. WhatsApp has done a nice work this time (at least for now). We are working hard on this, and it will take time to us to implement this feature.
WhatsApp is using axolotl from WhisperSystems, you can check here.
We know more or less how it works, but as i said, this will take time for us. So be patient. We'll update you as we continue on this.
Regards,
The WhatsAPI Official Team
It should be solved at the current moment:
27 Dec, 2014 We did it!
It really has been a long time since we went to work on WhatsApp encryption, but we have finally did it! and it will be soon on the API, first it will appear in python API (yowsup) and later here in PHP.
The solution was to port the library.
I just wanted to give this good news and wish you a merry christmas.
Regards,
The WhatsAPI Official Team
I have the same problem. But now it is fixed. You can see their api. They have updated their api on github and fixed the encryption issue.
End to end encryption support: Now the API is able to encrypt and decrypt messages automatically
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With