capcom6 / android-sms-gateway

The SMS Gateway for Androidâ„¢ app enables sending and receiving SMS messages through an API that can be accessed directly on the device or via a cloud server when direct device access is not possible.
https://sms-gate.app
Apache License 2.0
236 stars 63 forks source link

Question about hash in log message #141

Closed Mckill3r closed 2 hours ago

Mckill3r commented 2 hours ago

Hello after using the API

https://api.sms-gate.app/3rdparty/v1/message/...

i have a log like this one :

{ "id": "WaWs4....", "state": "Sent", "isHashed": true, "isEncrypted": false, "recipients": [ { "phoneNumber": "00640ea9d9bfdde3", "state": "Failed", "error": "Send result: RESULT_ERROR_GENERIC_FAILURE" } }

So isHashed is true but how to decode the value of phoneNumber

Thanks !

Mckill3r commented 2 hours ago

just find out in the doc :

(cloud-only) Whether the phoneNumber is the first 16 characters of the SHA256 hash of the E164 formatted phone number