PiotrMachowski / Xiaomi-cloud-tokens-extractor

This tool/script retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices.
MIT License
3.17k stars 327 forks source link

BLE Key shows all FF but this doesn't appear to be the actual key #79

Closed dasrue closed 1 year ago

dasrue commented 1 year ago

Here is the output for the device I'm interested in:

   ---------
   NAME:     Door and window sensor
   ID:       blt.1.1a8g8higl4c00
   BLE KEY:  FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
   MAC:      E4:AA:EC:53:BC:55
   TOKEN:    dda6e4313a0cb6efdf4da9b0
   MODEL:    isa.magnet.dw2hl
   ---------

In fact, all the devices on my account show all FF in the BLE key. When trying to decode the packets using all FF as the key it doesn't work, which suggests to me this device has a proper key. I wonder if Xiaomi have changed something recently that would break this script?

PiotrMachowski commented 1 year ago

Was it working for your devices before?

dasrue commented 1 year ago

I think it did work in the past, but I deleted and then re added the device to my mi home app, and now it shows up the key as expected.