专栏中心

EEPW首页 > 专栏 > 访问脚本源代码更加困难

访问脚本源代码更加困难

发布人:majack 时间:2011-11-14 来源:工程师 发布文章

有时候,编程人员想要阻止其他用户访问脚本的源代码。在2600系列[1]数据源表中,可以使用二进制发行示例脚本(可以从www.keithley.com网站获得)使得脚本源代码读取困难。不过,在2600A系列[2]数字源码中,可以删除脚本源代码,但仍然保持运行脚本的能力。为了删除脚本源代码,可以将脚本属性设置为零。然后,读取源代码只返回该代码的二进制编码版本。下面就是如何删除myScript源代码的实例。其中包括试图找回脚本源代码的结果。

Occasionally, programmers want to discourage other users from accessing the source code of a script. In the Series 2600instruments, the Binary Distribution example script (available onwww.keithley.com) could be used to make it difficult to read thescript source code. In the Series 2600A instruments, however,the source code of a script can be deleted and still maintain theability to run the script. To delete the script source code, set thesource attribute of a script to nil. Afterward, reading the scriptsource code returns only the binary-encoded version of the code.The following is an example of how to delete the source codeof the myScript. The results of attempts to retrieve the scriptsource code are included.

 

myScript.source = nil

print(myScript.source)

 

2612A系列数字源表[3]的返回如下:

Series 2612A returns the following:

 

loadstring(table.concat({    "\27LuaP\0\4\4\4\6\8\9\9\8A}\245\23h\147\9\182\0\0\ 0\1\0\0\0",    "\0\0\0\0\0\2\0\0\0\12\0\0\0\1\0\0\0\1\0\0\0\1\0\0\0\2\0\0\0\2",    "\0\0\0\2\0\0\0\3\0\0\0\3\0\0\0\3\0\0\0\4\0\0\0\4\0\0\0\4\0\0",    "\0\0\0\0\0\0\0\0\0\8\4\0\0\0\5smua\0\4\0\0\0\7source\0\4\0\0",    "\0\5func\0\3?\240\0\0\0\0\0\0\4\0\0\0\7leveli\0\4\0\0\0\8mea",    "sure\0\3\0\0\0\0\0\0\0\0\4\0\0\0\6sense\0\0\0\0\0\0\0\0\12\0",  "\0\0\5\0\0>\198\0~?I\0\0\0\5\0\0>\198\0\127?I\0\0\0\5\0\0?\198",    "\0~@\9\0\0\0\5\0\128\191I\0\0\128\27"}))()

 

 

 了解更多信息
     要想了解有关2600A系列数字源表或者吉时利其他系列数字源表的更多信息,或者咨询全套直接可用的多通道测试系统的价格,请点击https://admin.acrobat.com/_a16893448/p81871518/,或者联系吉时利公司:全国免费电话800-810-1334手机用户请拨打440-650-1334

登录吉时利官方微博(http://weibo.com/keithley)与专家进行互动。

吉时利仪器公司(中国)市场部
(T) 8008101334,  8610 82255010,  82255011

 



[1] 2600系列数字源表http://www.keithley.com.cn/products/semiconductor/sourcemeasureunits/series2600sys

[3] 2612A http://www.keithley.com.cn/products/semiconductor/sourcemeasureunits/series2600sys/?mn=2612A

专栏文章内容及配图由作者撰写发布,仅供工程师学习之用,如有侵权或者其他违规问题,请联系本站处理。 联系我们

关键词:

相关推荐

R8C、Lx学习型遥控器参考设计

视频 2012-07-03

R8C触摸式遥控器解决方案

视频 2012-07-03

Bourns 推出高精度功率电阻系列,专为高能量脉冲应用设计

搞懂微型断路器标识含义,这篇就够了!

大联大世平集团推出基于NXP产品的汽车12V电池管理系统应用方案

8052单片机控制RTL8019网卡的电路图(一)

DSP芯片的原理与开发应用

资源下载 2007-12-15

三星大力推崇96%的NAND设计采用低功耗——研究人员研究基于铁电晶体管的设计

尼得科传动技术开发了高精度大型减速机“KINEX”新尺寸机型

最新的GPU市场分析显示,英伟达正在被AMD超越——英特尔首次突破1%的市场份额大关

ATMEL AVR 单片机ASM设计软件V1.3

尼得科精密检测科技株式会社与中国感图科技签署战略合作协议

CPLD技术及其应用

英国热能专家声称实现10分钟电动快充突破

MCU电力线通信(PLC)解决方案

视频 2012-07-03

适用于汽车 4D 成像雷达的双器件毫米波级联参考设计解析

汽车电子 2025-12-03

面向超精准应用的匹配电阻器网络

视频 2012-07-03

at90s8515

业界首款基于台积电COUPE的次世代AI芯片光学连接解决方案亮相——Alchip与Ayar实验室展示未来硅光子器件

MCU电能计量解决方案

视频 2012-07-03
更多 培训课堂
更多 焦点
更多 视频

技术专区