Hi! When I wanted to decrypt message, I got this information :" Bad message, can't decrypt the incoming message." And I'm sure that the private key and public key and ref were correct. So I have no idea where is the issue.
![image](https://user-images.githubusercontent.com/34329573/53331880-f0a1f180-392c-11e9-91c3-360cffdd1860.png)
Can some people help me?? @romanzaikin
And I already try several times. It still doesn't work. Here are details:
ref: {"ref":"1@fmw/dw6TcLIThMjjG/Evzd11yOcqRjU821ci8Ko+m1y1gHpAqDJ+k2xk","wid":"***********[email protected]","connected":true,"isResponse":"false","serverToken":"1@e5hswShfPfSKo6SeNCcVdJ44M1vlVMw3CkmBs+uadAGOb7oZAMAnlPMVl3x1n2cyn7dpSettMvJL/w==","browserToken":"1@zzZoKQj0hg/WwT/I/HYSxj/hgNXIR4eeP8fu+c+y/oItpzsrQKzeU0NKu01wRY8i48r8TiUBZz7kxqAJOh8zKn9KUyZt3Zm57jSRKa4YqBGWbA+M0TztsrGaFc5aEnRz6BrXUhAVrArcbjyxe6PAMw==","clientToken":"UW6FqwWt/779bcfVMauUEZ6V74KBsUx3eBJTIrygMHBIKncYNU5Slza0GjrwObWQwkQVhV0oKnqOmm27OWiwsA==","lc":"CN","lg":"zh","secret":"GPilAuRdetgPixBhJNN42Fouj3lDFhuL2QvlcGp800jf5J7RXPK00GYfJOpV5vOVaLOYGhsXL9YVqdGVgicV9ITv3Uy3I6iMauF0ixcwt3qV0AwhyFIIB6Bo7Kp0ZSk6iWCBbDC+aAbIwTJSczprwW56WCiQ61hvVC84ew2snazn2wQPW1ZxGFMTR61owmY6","protoVersion":[0,17],"binVersion":10,"battery":74,"plugged":false,"platform":"iphone","features":{"KEY_PARTICIPANT":true,"FLAGS":"EAEYASACKAIwAjgBQAFIAVgCYAF4AoABAogBAg=="},"phone":{"wa_version":"2.18.102","mcc":"460","mnc":"001","os_version":"12.1.2","device_manufacturer":"Apple","device_model":"iPhone 6s","os_build_number":"undefined"},"pushname":"Giant","tos":0}
priKey:
[140, 175, 120, 170, 163, 195, 128, 156, 29, 63, 241, 172, 97, 142, 249, 118, 50, 246, 186, 125, 179, 147, 102, 211, 53, 111, 229, 250, 144, 116, 13, 44]
pubKey:
[248, 172, 165, 193, 168, 46, 193, 66, 162, 197, 189, 212, 233, 92, 169, 11, 46, 57, 108, 228, 85, 248, 50, 198, 182, 196, 105, 204, 14, 169, 174, 87]
And converse incoming message in Base64.