No description
This repository has been archived on 2026-10-07. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
s1d3sw1ped_bot 6618488458
All checks were successful
CI / test (push) Successful in 17s
Merge branch 'main' into develop
Bring develop up to date after CONTRIBUTING reconcile on main.
2026-09-01 19:10:48 +00:00
.gitea/workflows Bump Go to 1.27.0 (#1) 2026-08-31 20:09:01 -05:00
docs/superpowers Make Parse take raw NFC UID and 1K image. 2026-08-23 15:27:11 -05:00
dump Add bambu-nfc dump parse, Key-A HKDF, and spool merge. 2026-08-23 15:23:11 -05:00
mifare Add bambu-nfc dump parse, Key-A HKDF, and spool merge. 2026-08-23 15:23:11 -05:00
testdata Add bambu-nfc dump parse, Key-A HKDF, and spool merge. 2026-08-23 15:23:11 -05:00
.gitignore gitignore: Add Go build and IDE ignores 2026-09-01 11:27:41 -05:00
color.go Add bambu-nfc dump parse, Key-A HKDF, and spool merge. 2026-08-23 15:23:11 -05:00
CONTRIBUTING.md docs: Add CONTRIBUTING.md 2026-09-01 13:37:05 -05:00
doc.go Make Parse take raw NFC UID and 1K image. 2026-08-23 15:27:11 -05:00
errors.go Make Parse take raw NFC UID and 1K image. 2026-08-23 15:27:11 -05:00
go.mod Bump Go to 1.27.0 (#1) 2026-08-31 20:09:01 -05:00
kdf.go Add bambu-nfc dump parse, Key-A HKDF, and spool merge. 2026-08-23 15:23:11 -05:00
kdf_test.go Add bambu-nfc dump parse, Key-A HKDF, and spool merge. 2026-08-23 15:23:11 -05:00
merge.go Add bambu-nfc dump parse, Key-A HKDF, and spool merge. 2026-08-23 15:23:11 -05:00
merge_test.go Make Parse take raw NFC UID and 1K image. 2026-08-23 15:27:11 -05:00
parse.go Make Parse take raw NFC UID and 1K image. 2026-08-23 15:27:11 -05:00
parse_test.go Make Parse take raw NFC UID and 1K image. 2026-08-23 15:27:11 -05:00
README.md Make Parse take raw NFC UID and 1K image. 2026-08-23 15:27:11 -05:00

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 ./...