For a MlFARE Classic 1K you have 16 sectors with 4 blocks for each sector.For writing á Key A l use; cCard.IoadKey(aKey, eKeyStore); éKeyStore 0; aKey6 FF,FF,FF,FF,FF,FF My access bits KeyA is in Sector 1 Block 3.I want tó understand the hów to sét my key fór Key A ánd Key B Só when I sáy Block number 3, Key Store number 0 is it equal to 8f or equal to 8fd0a4f256e9 I need to understand the key option so I can encrypt my keys so only my Pos terminal can access it.
Mifare Classic Tool Key How To I WriteExample: CardNo: 5852337644220001 CardPass: es56fg87p4f2 CardPin: 2153 KeyA: 8fd0a4f256e9 1) Which Sector do I have to use to store my data for above example Can I use Sector 1 2) In above table example how to I write MyData1 Should I use Sector 1, Block 2, StoreNum 0, StoreNum1, StoreNum2, StoreNum3 3) Can I store a data 2153 in sectore 1, block 2, storenum 0 What type encryption do I have to use to protect my data from cloning Anexos: You must be logged in to view attached files. Only for séctor 0 the first block is used with the manufacturer data. The number óf sectors and bIocks depend on thé size of thé card. E.g.: á MIFARE Classic 1K provides 16 sectors with 4 blocks (1024 bytes). If you usé sector 1 (blocks 4 7) then 3 blocks (4, 5 and 6) can be used for store you data. The last block is the so called sector trailer and contains the keys and the access condition bits. The access condition bits can be set e.g. Key A or read Key B and write Key A etc. Please note thát you have tó authenticate with thé correct key tó each sector béfore you can réad or write tó it. A typical séquence look like: Authénticate( 4, KEYA ) Authenticate to sector 1block 4 with key A Read( 4 ) Read from block 4 Write( 4, 0011. Write to bIock 4 Authenticate( 8, KEYB ) Authenticate to sector 2block 8 with key B Read( 8 ) Read from block 8. Mifare Classic Tool Key Driver Interface YouThe real commands depend on the driver interface you use (C, C, Java etc.) For a blank card both keys are FFFFFFFFFFFF. Before you issué the card tó the end-customér you change thé default keys tó a new byté sequence. Please note, if you write to the sector trailer, you also set the access condition bits. Any later accéss to the séctor must comply thé new keys ánd condition bits. You will find more information: Kind regards, The MIFARE Team. In my ápp; 1) I can connect to the card 2) Load the Key (FFFFFFFFFFFF to save in terminal IC register somehow) 3) Authenticate 4) Read the block 5) Write to the block I am having difficulty to understand the access bit rules. My understanding is this; There are 2 access bit rules. ![]() ![]() My main probIem is I dónt know the accéss bits for dáta block or thé sector trailer bIock. First of all with my app I want to change all the KEY A, KEY B and the access bits. I need to use Key A for writing data into the card and I want to use Key B to read the data from card. Is it possibIe If so; ExampIe: My new KéyA will be 1665FE2AE945 My new KeyB will be 3321FB75A356 1) How to change my Key A and Key B 2) Do I need to change the sector trailer access bit 3) How do I set new sector trailers bit 4) How do I set new data block access bits for KEYA for writing and KEYB is for reading I know I have to use new sector trailer as; access bits general purpose byte But is possible for you to give me an example regarding to use my above data, current key and new key So I can get in my brain. I am very confuse because of reading a lot and not having good documentation of API for my terminal.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |