Open ansega opened 8 years ago
I have exactly the same issue, when trying to write I get the "Unable to login in sector X with key B" on a factory-default Mifare Classic 1K.
Any help?
Not sure if this is really the problem in your cases but for anyone hitting the same issue... we tested w/ Mifare 1K and 4K cards on a Omnikey 5421 card reader. Our solution was to modify code a bit...
LoadKeysTransmissionType.Volatile = 0x20
// needs to be added in Pcsc.csMifareStandardCommands.cs#LoadKey
needs to modified so that LoadKeysTransmissionType. Volatile
is used instead of .Plain
HTH
Not sure if this is really the problem in your cases but for anyone hitting the same issue... we tested w/ Mifare 1K and 4K cards on a Omnikey 5421 card reader. Our solution was to modify code a bit...
LoadKeysTransmissionType.Volatile = 0x20
// needs to be added in Pcsc.csMifareStandardCommands.cs#LoadKey
needs to modified so thatLoadKeysTransmissionType. Volatile
is used instead of.Plain
HTH
Thanks this worked in my case as well.
Not sure if this is really the problem in your cases but for anyone hitting the same issue... we tested w/ Mifare 1K and 4K cards on a Omnikey 5421 card reader. Our solution was to modify code a bit...
LoadKeysTransmissionType.Volatile = 0x20
// needs to be added in Pcsc.csMifareStandardCommands.cs#LoadKey
needs to modified so thatLoadKeysTransmissionType. Volatile
is used instead of.Plain
HTH im using a ACR122U and even with this fix i can't write or login in the sector, do the reader really matter? moreover with other library i could write on card but not on a wrist band what im getting wrong?
I want to use this project to read and write Mifare 1k cards, I know the values for KeyA and KeyB but I can't find the proper combination to perform the read and write over the card.
There is a way for achieve this, I can't see a sample who uses such values.
I try to put together that but I'm stuck with the order of the actions.
After the card is detected and the card object is filled, I try for sector 9:
From the Card Added Event I have:
Outside the event on a button I want to get the sector to Authenticate with the keys
But the authentication fails with Message:
Looks like I can write the cards and something is missing but I can't find the way, any sugestion to make it work in Mifare 1K?