Last active
January 3, 2023 03:29
-
-
Save blark/e8f125e402f576bdb7e2d7b3428bdba6 to your computer and use it in GitHub Desktop.
HID Preamble Bits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from http://www.proxmark.org/forum/viewtopic.php?pid=5415#p5415 | |
0000 0010 0000 0000 01xx xxxx xxxx xxxx xxxx xxxx xxxx 26-bit | |
0000 0010 0000 0000 1xxx xxxx xxxx xxxx xxxx xxxx xxxx 27-bit | |
0000 0010 0000 0001 xxxx xxxx xxxx xxxx xxxx xxxx xxxx 28-bit | |
0000 0010 0000 001x xxxx xxxx xxxx xxxx xxxx xxxx xxxx 29-bit | |
0000 0010 0000 01xx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 30-bit | |
0000 0010 0000 1xxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 31-bit | |
0000 0010 0001 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 32-bit | |
0000 0010 001x xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 33-bit | |
0000 0010 01xx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 34-bit | |
0000 0010 1xxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 35-bit | |
0000 0011 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 36-bit | |
0000 000x xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx 37-bit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To calculate this in python:
pad = lambda n: ((1 << (37-n)) | 1)