how to maintain security

2 views (last 30 days)
john
john on 6 Jul 2011
Commented: lis coffey on 2 Oct 2020
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?

Answers (2)

Jan
Jan on 6 Jul 2011
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 Comment
lis coffey
lis coffey on 2 Oct 2020
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

Sign in to comment.


Daniel Shub
Daniel Shub on 6 Jul 2011
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.

Categories

Find more on Programming in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!