Extract Xiaomi tokens from your iPhone backup
A tiny desktop app that finds local iPhone backups and pulls out your Mi Home device tokens. Fully offline.
View source on GitHub ↗Code used directly
crabapple ↗
Rust library that parses & decrypts iOS backups — the heavy lifting.
Tauri ↗
The Rust + WebView desktop app framework.
rusqlite ↗
Bundled SQLite for reading Manifest & Mi Home databases.
RustCrypto ↗
aes, cbc, pbkdf2, aes-kw, hmac, sha1/sha2 primitives.
rust-plist ↗
Parsing Info.plist / Manifest.plist / Status.plist.
Inspiration & prior art
python-miio ↗
Reference for Mi Home's ZTOKEN AES-ECB token scheme.
Xiaomi-cloud-tokens-extractor ↗
By Piotr Machowski — inspired doing this locally from a backup.
HA Xiaomi Miio ↗
Home Assistant integration — why these tokens are worth extracting.
iOS backup tools ↗
iBackup Viewer, DB Browser for SQLite — the manual version this automates.