charlysan / pyrfidhid

Python library to control Chinese USB HID 125Khz RFID Reader/Writer
MIT License
142 stars 36 forks source link

interpret w26 format #2

Closed danieltwagner closed 6 years ago

danieltwagner commented 6 years ago

Interpret W26 format (facility code + card number), as referenced here: https://www.hidglobal.com/sites/default/files/hid-understanding_card_data_formats-wp-en.pdf

Works for my W26 cards, YMMV.

I also stripped trailing whitespaces. Lmk if you'd like me to separate the actual diff out from whitespace changes.

charlysan commented 6 years ago

Looks good to me and it works as expected. Thanks for the contribution.

:shipit: