千家论坛_弱电智能化技术与工程讨论(建筑智能,家居智能,人工智能)

门禁/对讲/一卡通
收藏本版 |订阅

门禁/对讲/一卡通 今日: 1847 |主题: 18133

发新帖
打印 上一主题 下一主题

EM卡 10位转8位卡号的原理和方法...

[复制链接]
wiegand26 发布于: 2006-10-12 13:46 3426 次浏览 6 位用户参与讨论
跳转到指定楼层
<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编辑过]

回复

使用道具 举报

已有6人评论

新浪微博达人勋

千家认证

沙发
xinzhiyong123 发表于 2007-3-6 11:57:00
不错,又学习了
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

板凳
hawk9 发表于 2007-3-6 12:07:00
经典&nbsp;&nbsp;&nbsp;&nbsp; 了解
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

地板
zzwsc 发表于 2007-3-7 12:02:00
<p>不错!!</p>
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

5#
freezsk 发表于 2007-3-10 00:54:00
学习了,谢谢楼主
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

6#
suyulz 发表于 2010-3-30 20:59:00
<br/>

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆 千家通行证登陆

x
回复 支持 反对

使用道具 举报

新浪微博达人勋

千家认证

7#
apzap 发表于 2010-4-17 11:59:00
<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>
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆 千家通行证登陆

本版积分规则

千家智客微信号
千家智客微信
玩物说商城
玩物说商城