2751|0

294

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

访问脚本源代码更加困难 [复制链接]

有时候,编程人员想要阻止其他用户访问脚本的源代码。在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/products/semiconductor/sourcemeasureunits/series2600sys/?mn=2612A

点赞 关注
 
 

回复
举报
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/9 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表