rfidtool / ESP-RFID-Tool

A tool for logging data/testing devices with a Wiegand Interface. Can be used to create a portable RFID reader or installed directly into an existing installation. Provides access to a web based interface using WiFi in AP or Client mode. Will work with nearly all devices that contain a standard 5V Wiegand interface. Primary target group is 26-37bit HID Cards. Similar to the Tastic RFID Thief, Blekey, and ESPKey.
MIT License
492 stars 93 forks source link

BIN to HEX conversion only works properly if length of BIN is a multiple of 4 #11

Open mh- opened 1 year ago

mh- commented 1 year ago

If the number of bits is not a multiple of 4, strange results occur, because the conversion does not extend the start of the BIN value with zeroes, like most other conversion tools would. See https://github.com/rfidtool/ESP-RFID-Tool/blob/b0bb4cc692afde31613444595f33b282489bf127/Source%20Code/esprfidtool/esprfidtool.ino#L1187