No description
- Go 100%
|
All checks were successful
CI / test (push) Successful in 17s
Bring develop up to date after CONTRIBUTING reconcile on main. |
||
|---|---|---|
| .gitea/workflows | ||
| docs/superpowers | ||
| dump | ||
| mifare | ||
| testdata | ||
| .gitignore | ||
| color.go | ||
| CONTRIBUTING.md | ||
| doc.go | ||
| errors.go | ||
| go.mod | ||
| kdf.go | ||
| kdf_test.go | ||
| merge.go | ||
| merge_test.go | ||
| parse.go | ||
| parse_test.go | ||
| README.md | ||
bambu-nfc
Go library for Bambu Lab filament NFC. Input is raw NFC: chip UID bytes and the 1024-byte MIFARE Classic 1K image — not a phone dump format.
import bambunfc "git.s1d3sw1ped.com/s1d3sw1ped/bambu-nfc"
tag, err := bambunfc.Parse(uid, image) // uid from ISO 14443, image is 1K
keys, err := bambunfc.KeysA(uid) // 16 Key-A values to dump the tag
spools, err := bambunfc.Merge(tags)
dump can still decode the Android app's filanfc-dump/v1 zip if you need that adapter; the inventory site should call Parse with UID + image (phone, AMS wand, or anything else).
mifare— Classic 1K layout helpers- root package — Bambu Key-A HKDF, block parse, merge by
tray_uid
Brand is "Bambu Lab" on a successful parse.
go test -race ./...