How write LIMITED EDITION matlab script ?

1 次查看(过去 30 天)
I have to write a matlab script for my friend... I have to put some logic by that script(pcode) will be expire after some time... By using simple clock and datenum functions it can be possible to but it can be hack by changing system time... I'm looking for other logics...
Possible solutions...(after expire date) 1)deleting pcode script 2)clear and rewrite another content in exciting script... Please Help...

采纳的回答

John D'Errico
John D'Errico 2016-8-13
编辑:John D'Errico 2016-8-13
It does not sound like this is much of a friend, if you will only be their friend for a very short time. After all, friendship is one thing, but there are limits. So you can be my friend until, how about next Tuesday, at midnight?
And, of course, you expect that your "friend" will do their best to disobey your limits, by hacking your code in anyway possible. A great pair of great friends.
Of course, you can put code in there to delete your m-file after it runs. I suppose you can find the true date by use of a urlread on some site online.
Personally, I'd look for a better set of friends. Unless you charge your friends for the right to be your "friend". I know that activity has some common name, but I can't think of it at the moment. It is a rather old occupation though. :) :) (Why not just admit to us that you want to sell a limited term license for your code?)
  7 个评论
Andreas Goser
Andreas Goser 2016-8-17
编辑:Andreas Goser 2016-8-17
If it is business, then I suppose you have a commercial license and thus ideally you call into MathWorks India Technical Support and discuss technical options.
John D'Errico
John D'Errico 2016-8-17
Without resorting to the system clock on the current system, OR use of an internet connection to get the date, then there is no simple way to get the current date.
In that case, you may want to use a counter, for te number of times your code has been used. Store the variable in a file somewhere. OF course, this allows the user to access that file and modify the counter themselves. So you might need to store a hashed version of the counter, that would not be so esaily modified. If they change the hash code, then odds are, the unhashed value would not be legal.
Far simpler to just charge for a full license. Or even better, make it free.

请先登录,再进行评论。

更多回答(1 个)

Kelvin Viroja
Kelvin Viroja 2016-8-17
Thanks Everyone for your valuable time ,comments and discussions... I think charging for full licence With unique DomainSID is best way....or ?

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by