Skip to content

kylestev/rfid-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rfid-reader

A rust package for decoding and encoding of the Wiegand format used in 125KHz RFID fobs.

Examples

use rfid_debug::WiegandFormat;

let standard_format = WiegandFormat {
    parity_even: 0,
    parity_odd: 25,
    card_number: (0, 16), // bit range [lower, upper)
    facility_code: (16, 24), // bit range [lower, upper)
};

let (facility, card_number) = standard_format.decode(5666862).unwrap();

println!("facility = {}, ID = {}", facility, card_number);

Resources

How does one learn more about this format?

Look no further than HID®'s website for documentation.

About

Rust crate for extracting information from RFID scans. Wiegand encoding, H10301, Standard 26 bit format

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages