Stefan Gretar
Stefan Gretar

Reputation: 178

Matlab GUI How to store user data

I have a Matlab GUI used on my institution with multiple users. We store the application on a local server that everybody has access to. Now I want to add user information, last server, last database and etc.

My first idea is to create a .mat file, store the data under a structure and use the computer name/id as the handle. Requesting users to login is not a very good option since I have no clue how to store the passwords in Matlab (if you know how, please do tell).

I've been putting this on hold for a while now since I'm never quite satisfied with my approach. I would love to get some input (ideas) on this.

Upvotes: 0

Views: 1260

Answers (1)

Ali
Ali

Reputation: 19682

We have a similar situation, for a very small user base, we don't need any privacy (we only store window size and locations and few configuration parameters) so we store these are local mat files under users home directory (in windows I guess we store them in My Documents\Matlab).

So if privacy is not an issue you can just use user names without passwords.

I do NOT recommend storing passwords using matlab because it is not just a matter of storing hashed passwords but also you need to enforce permissions on a server (that you said is accessible to all of your users) which is in the best case senario a reinvention of the wheel.

You didn't say if these settings are computer specific, or user specific, or both.

Upvotes: 2

Related Questions