最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

nfc - access bits configuration to hide key B - Stack Overflow

programmeradmin0浏览0评论

I made an app that writes data into NFC card (mifare classic) using key A and key B, key A was set to be 0xFFFFFFFFF (factory default) but for key B i use my custom key. Is there any way to hide key B from tools such as Mifare Classic Tool so it shows as --:--:--:--:--:--

using this one, I can freely write data inside sector (i set it as sector 2) but key A and key B is visible in MCT.

trailerData[6] = 0xFF.toByte()
trailerData[7] = 0x07.toByte()
trailerData[8] = 0x80.toByte()
trailerData[9] = 0x69.toByte()

using this one i can hide key B but i can only write once, after that my app shows a transceive error.

trailerData[6] = 0x7F.toByte()
trailerData[7] = 0x07.toByte()
trailerData[8] = 0x88.toByte()
trailerData[9] = 0x69.toByte()

what i want is, to set key B as hidden, but i can still write freely to my sector, what access bits that i need to change it to?

I made an app that writes data into NFC card (mifare classic) using key A and key B, key A was set to be 0xFFFFFFFFF (factory default) but for key B i use my custom key. Is there any way to hide key B from tools such as Mifare Classic Tool so it shows as --:--:--:--:--:--

using this one, I can freely write data inside sector (i set it as sector 2) but key A and key B is visible in MCT.

trailerData[6] = 0xFF.toByte()
trailerData[7] = 0x07.toByte()
trailerData[8] = 0x80.toByte()
trailerData[9] = 0x69.toByte()

using this one i can hide key B but i can only write once, after that my app shows a transceive error.

trailerData[6] = 0x7F.toByte()
trailerData[7] = 0x07.toByte()
trailerData[8] = 0x88.toByte()
trailerData[9] = 0x69.toByte()

what i want is, to set key B as hidden, but i can still write freely to my sector, what access bits that i need to change it to?

Share Improve this question asked Feb 3 at 10:04 john_smithjohn_smith 852 silver badges12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

In the document named MF1S70YYX_V1 in section 8.7.2, you have a table with the access byte configuration information, from 6 to 9. There it explains the different values to make key b not visible.

发布评论

评论列表(0)

  1. 暂无评论