Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++
Go Back  Xtreme Visual Basic Talk > > > Decoding RFID data hexadecimal math issue C++


Reply
 
Thread Tools Display Modes
  #1  
Old 02-02-2015, 10:46 PM
StealthRT's Avatar
StealthRT StealthRT is offline
Contributor
 
Join Date: Aug 2002
Posts: 785
Question Decoding RFID data hexadecimal math issue C++


I currently am stuck at getting the needed outcome data from my RFID card. I got it decoded but now I need to do a few more things in order to get the final card number off the back of the card.

The cryptic value was E********B**0**E** (covered to protect card)
Decrypting it turned into 0000003048D1263B

Now I have 3 more steps to take in order to get to my wanted card number.

Quote:
Step 1) Mask off the lower 20-bits (which should give me 0x1263B) I am unsure of how to go about doing that using C++.
Quote:
Step 2) Divide by 2 to strip off the lower parity bit (which should be 0x931d). And again, I'm unsure of how to go about doing this in C++.
Quote:
Step 3) Convert hexadecimal value to decimal value (which would equal my wanted card number). This should be easily done using C++ at this point - though hard to confirm that since I am on step 1).
Code:
    const char* original = "0x931d";
	unsigned long n = std::strtoul(original, nullptr, 16);
All of this looks to me like RegEX does to most people - complicated and not understanding why it does what it does but gives the correct output.

All help would be appreciated!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++ Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++
 
Decoding RFID data hexadecimal math issue C++
Decoding RFID data hexadecimal math issue C++
 
-->