Inside there is a small 125khz EM4x05 RFID transponder (tag), in the form of a chip + a rod antenna coil. These are the same tech as electronic door key fobs, or even ID chips in pets– an RFID scanner in the saber/holocron scans the tag to learn it’s Tag ID in order to identify it.