Mifare Net2 Token Converstion

So, in my previous post you saw I setup my USB reader on my Pi, now I need that to add cards to a net2 system I use.

So after some digging I’ve found how Net2 generates it’s tokens (for RFID).

  1. It (only) takes the first four HEX pairs of the UID of the card
  2. It converts it to decimal
  3. The net2 token is the last 8 characters of the decimal figure

WARNING – Some card readers read the hex pairs in reverse.

You should test if yours is one of these with a card you have a known net2 token for, or you can input the test token into the net2 system to check it works.

If yours is one of these you must reverse the hex pairs of the UID before the steps mentioned here.

Generate your net2 tokens here: /projects/card2net2 if you like

Examples, they’re always handy…

Example for 4 byte UID tokens (as tested on Mifare Classic):

  1. Original UID in HEX : 63a6ed04
  2. Remember to reverse if your reader needs this step
  3. Convert to decimal : 1671884036
  4. Truncated to least significant/last 8 decimal digits : 71884036 <–THIS is the Number seen by Net2 ACU

Example for a 7 byte UID token (as tested on an Oyster card [Mifare DESFire]):

  1. Original UID in HEX : 802a21045037ca
  2. Reverse if your reader needs to
  3. Truncated UID in HEX (most significant 4 pairs) : 802a2104
  4. Convert to decimal : 2150244612
  5. Truncated to least significant 8 decimal digits: 50244612 <–Net2 Token

Great thanks to Ciaran for finding handy paxton forum links (specifically this one and this one) which both gave partially correct information, according to my testing.

Be the first to comment

Leave a Reply

Your email address will not be published.


*


ERROR: si-captcha.php plugin: GD image support not detected in PHP!

Contact your web host and ask them to enable GD image support for PHP.

ERROR: si-captcha.php plugin: imagepng function not detected in PHP!

Contact your web host and ask them to enable imagepng for PHP.