打印

访问脚本源代码更加困难

[复制链接]
1011|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
jack_ma|  楼主 | 2011-11-14 10:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
有时候,编程人员想要阻止其他用户访问脚本的源代码。在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 howeverthe 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

[2] 2600A系列http://www.keithley.com.cn/news/prod080923

[3] 2612A http://www.keithley.com.cn/produ ... es2600sys/?mn=2612A

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

68

主题

95

帖子

0

粉丝