ikarus23 / MifareClassicTool

An Android NFC app for reading, writing, analyzing, etc. MIFARE Classic RFID tags.
http://www.icaria.de/mct/
GNU General Public License v3.0
4.69k stars 906 forks source link

Add a key file generator tool for know algorithems #318

Open ikarus23 opened 4 years ago

ikarus23 commented 4 years ago

There are several known key generation/derivation algorithms out the to calculate the keys for a MIFARE Classic tag. Some of them can be found here: https://github.com/RfidResearchGroup/proxmark3/blob/master/common/generator.c. It would be great to have tool in which the user can input parameters (e.g. the toy/algo, the UID, etc.) and it generates a key file with the correct keys.

The0ne94 commented 3 years ago

Hi sir, what do you need for this project? Thank you for all your really Great job.

ikarus23 commented 3 years ago

I can do the UI stuff my self, but if you want you can port some of the known generators to java. I'm thinking like one function per product/generator. So something like:

String[] generateVingLock(String uid) {
    ...
    return keys;
}

String[] generateYaleDoorman(String uid) {
    ...
    return keys;
}

...

Be aware that there are helper functions in Common.java like hex2Bytes() or bytes2Hex().

dtd442 commented 1 month ago

that's interesting, how implement algos