how to maintain security
2 次查看(过去 30 天)
显示 更早的评论
I am trying to deploy an executable that will take a user defined data file as input and plot a graph as the output but not allow the user to read or modify the axes settings: min, max, tick interval, etc. The problem is the plots I've been able to create so far have allowed access to all these parameters. Is there some switch I'm not seeing that locks-up the output from prying / interfering fingers?
0 个评论
回答(2 个)
Jan
2011-7-6
There is no locking mechanism in Matlab. You could create a listener, which reacts to all changes and resets them actively - ask Google for "Matlab addlistener".
I cannot imagine a situation, where the manipulation of a plot concerns the security. I assume due to its open character, Matlab is not a good choice for such tasks.
1 个评论
lis coffey
2020-10-2
The only workaround would be to encrypt the communication between the identification and the lock functions. A safe implementation requires a lot of work and experience
You will not be able to implement a pure lock. Using Simscape language, you could write an ssc-file to "lock" by enabling a stiff spring damper when you want the system to be locked. I would use Hard-stop source file as a starting point.
In SimDriveline, the clutch could allow you to implement a perfect locking. I'd really suggest looking into how you can get and send data from a database, as they handle a lot of the problems that people would like to use file locking for, only much more gracefully
Thanks
WP Hacked Help
Daniel Shub
2011-7-6
I think if you set the HitTest and HandleVisibility properties to off, you can lock down an axis pretty well. For even more "security" you could add the axis to a uipanel and set its HitTest and HandleVisibility to off also. The HitTest property prevents the user from selecting the object with the mouse. The HandleVisibility property hides the handle from the user. This is not complete security since I am sure a really determined individual could still change the axis properties.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!