五岳之巅 发表于 2011-12-23 01:37

M1卡前世今生

<font class="Apple-style-span" size="4">1、中文发音:<span class="Apple-style-span" style="font-family: Arial; line-height: 22px; white-space: pre-wrap; background-color: rgb(255, 252, 246); ">米菲儿。</span></font><div><font class="Apple-style-span" size="4"><br></font></div><div><font class="Apple-style-span" size="4">2、如何快速识别EM卡,HID卡和MF卡?<br></font><div><font class="Apple-style-span" size="4">答:<span class="Apple-style-span" style="font-family: Arial; line-height: 22px; white-space: pre-wrap; background-color: rgb(255, 252, 246); ">如果是一面平,一面代坡并且底面有一排数字的为EM卡,剩下两张应该是平的,其中一张应该是另一张的二倍厚,那么厚的那张是HID卡,薄的是MF卡。</span></font></div></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-family: Arial; line-height: 22px; white-space: pre-wrap; background-color: rgb(255, 252, 246); "><br></span></font></div><div><font class="Apple-style-span" size="4"><span class="Apple-style-span" style="font-family: Arial; line-height: 22px; white-space: pre-wrap; background-color: rgb(255, 252, 246); "><br></span></font></div><div><span class="Apple-style-span" style="font-family: tahoma, 宋体, fantasy; font-size: 12px; line-height: 20px; background-color: rgb(255, 255, 255); ">是直接向控制块里写,但能写的前提是扇区的密码已得到确认.<br>向控制块中写数据时,首先要理解控制块中控制位的用途.避免写入无效数据后,扇区被锁死.<br>每个控制块共16个字节,前6个和后6个字节是密码KeyA和KeyB,中间4个字节是控制位.如果写错控制位,即使你知道KeyA/KeyB,也再也不能访问这个扇区了.<br><br>所谓三次互相认证是只在进行真正的数据交换前,卡和读写器之间会传输一些随机产生的密钥,在确认这一次通讯的密钥后,真正的数据才会使用这些密钥加密后进行通讯.密钥产生过程就是三次认证.由于每一次密钥不同,所以即使是进行相同数据的通讯,在卡和读卡器之间的每次通讯信号都是不同的,没法捕捉.</span></div><div><span class="Apple-style-span" style="font-family: tahoma, 宋体, fantasy; font-size: 12px; line-height: 20px; background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="font-family: tahoma, 宋体, fantasy; font-size: 12px; line-height: 20px; background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="font-family: tahoma, 宋体, fantasy; font-size: 12px; line-height: 20px; background-color: rgb(255, 255, 255); ">这三次认证跟密钥KEYA或KEYB是有关的。的确需要事先设定读卡机和卡片的密钥一致才能认证。认证时通过随机数和KEYA或KEYB产生一个后续通信需要的流加密种子,当然读卡机和卡片的加密算法和该种子需保持一致。</span></div><div><span class="Apple-style-span" style="font-family: tahoma, 宋体, fantasy; font-size: 12px; line-height: 20px; background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="font-family: tahoma, 宋体, fantasy; font-size: 12px; line-height: 20px; background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="font-family: tahoma, 宋体, fantasy; font-size: 12px; line-height: 20px; background-color: rgb(255, 255, 255); "><br></span></div>
页: [1]
查看完整版本: M1卡前世今生