千家论坛_智能建筑与智能家居技术交流社区

标题: EM卡 10位转8位卡号的原理和方法 [打印本页]

作者: wiegand26    时间: 2006-10-12 13:47
标题: EM卡 10位转8位卡号的原理和方法
<h3 style="MARGIN: 13pt 0cm;"><font size="5"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">原理</span><span lang="EN-US"><font face="Times New Roman">:</font></span></font></h3><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">8</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">位卡号才是</span><span lang="EN-US"><font face="Times New Roman">wiegand26</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">国际标准的卡号输出方式</span><span lang="EN-US"><font face="Times New Roman">,</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">有些国内考勤机厂商采用直接读卡号的内码的方式做卡号</span><span lang="EN-US"><font face="Times New Roman">,</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">这种读法是</span><span lang="EN-US"><font face="Times New Roman">10</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">位数</span><span lang="EN-US"><font face="Times New Roman">.</font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">&nbsp;<p></p></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">例如一张卡</span><font face="Times New Roman"><br/>&nbsp;&nbsp;</font><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">上印刷</span><span lang="EN-US"><span style="mso-spacerun: yes;"><font face="Times New Roman">&nbsp; </font></span></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">如下:</span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">&nbsp;<p></p></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">0013961168<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>213 02000</font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">10</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">位数卡号</span><span lang="EN-US"><font face="Times New Roman"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>3</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">+</span><span lang="EN-US"><font face="Times New Roman">5<span style="mso-spacerun: yes;">&nbsp; </span>8</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">位数卡号</span><span lang="EN-US"><font face="Times New Roman"><br/>&nbsp;&nbsp;&nbsp;</font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">&nbsp;<p></p></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">10</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">位数卡号</span><span lang="EN-US"><font face="Times New Roman"> 0013961168<span style="mso-spacerun: yes;">&nbsp;&nbsp; </span></font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">转换为</span><span lang="EN-US"><font face="Times New Roman">16</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">进制是</span><span lang="EN-US"><font face="Times New Roman"><span style="mso-spacerun: yes;">&nbsp; </span>00 D5 07 D0</font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">8</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">位数卡号</span><span lang="EN-US"><font face="Times New Roman"><span style="mso-spacerun: yes;">&nbsp; </span>213 02000<span style="mso-spacerun: yes;">&nbsp;&nbsp; </span></font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">前</span><span lang="EN-US"><font face="Times New Roman">3</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">位数</span><span lang="EN-US"><font face="Times New Roman">213</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">转换为</span><span lang="EN-US"><font face="Times New Roman"> 16</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">进制</span><font face="Times New Roman"><br/>&nbsp;&nbsp;</font><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">是</span><span lang="EN-US"><font face="Times New Roman"> D5<span style="mso-spacerun: yes;">&nbsp; </span></font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">后五位数</span><span lang="EN-US"><font face="Times New Roman">02000 </font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">转换为</span><span lang="EN-US"><font face="Times New Roman">16</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">进制是</span><span lang="EN-US"><font face="Times New Roman"> 07 D0<span style="mso-spacerun: yes;">&nbsp; </span></font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">&nbsp;<p></p></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">大家可以发现规律:</span><font face="Times New Roman"><br/>&nbsp;&nbsp;</font><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">首先</span><span lang="EN-US"><font face="Times New Roman"> 10</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">位数转换为</span><span lang="EN-US"><font face="Times New Roman">16</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">进制是</span><span lang="EN-US"><font face="Times New Roman"> 4</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">个字节</span><span lang="EN-US"><span style="mso-spacerun: yes;"><font face="Times New Roman">&nbsp; </font></span></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">,第一个字节不要,第二个字节</span><font face="Times New Roman"><br/>&nbsp;&nbsp;</font><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">转换为</span><span lang="EN-US"><font face="Times New Roman">8</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">位卡号的前</span><span lang="EN-US"><font face="Times New Roman">3</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">位,</span><font face="Times New Roman"><br/>&nbsp;&nbsp;</font><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">第三个和第四个字节一起转换位</span><span lang="EN-US"><font face="Times New Roman"> 8</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">位卡号的后</span><span lang="EN-US"><font face="Times New Roman">5</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">位数。</span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">&nbsp;<p></p></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">&nbsp;<p></p></font></span></p><p></p><p></p><h3 style="MARGIN: 13pt 0cm;"><font size="5"><span lang="EN-US"><font face="Times New Roman">Excel </font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">转换公式</span><span lang="EN-US"><font face="Times New Roman">:</font></span></font></h3><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Arial; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;">=(MOD(X,256*256))+(MOD(INT(X/(256*256)),256)*100000) X表示十位数字, 结果就是8位数字</span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Arial; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;"></span></p>
[此贴子已经被作者于2006-10-12 13:48:16编辑过]


作者: xinzhiyong123    时间: 2007-3-6 11:57
不错,又学习了
作者: hawk9    时间: 2007-3-6 12:07
经典&nbsp;&nbsp;&nbsp;&nbsp; 了解
作者: zzwsc    时间: 2007-3-7 12:02
<p>不错!!</p>
作者: freezsk    时间: 2007-3-10 00:54
学习了,谢谢楼主
作者: suyulz    时间: 2010-3-30 20:59
[attach]37326[/attach]<br/>
作者: apzap    时间: 2010-4-17 11:59
<p>用我们的多功能检测发卡器,任何格式的内码,都可以帮你搞定。</p>
<p>直观,明了,看了之后,就明白了各种格式内码之间的关系</p>
<p><font face="Verdana"><a href="http://www.eastaegis.com/products/zhinenkajiancejiju/changgui/2010/0107/42.html">http://www.eastaegis.com/products/zhinenkajiancejiju/changgui/2010/0107/42.html</a></font></p>
<p>&nbsp;</p>




欢迎光临 千家论坛_智能建筑与智能家居技术交流社区 (http://bbs.qianjia.com/) Powered by Discuz! X3.2