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
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!