How write LIMITED EDITION matlab script ?

2 ビュー (過去 30 日間)
Kelvin Viroja
Kelvin Viroja 2016 年 8 月 13 日
回答済み: Kelvin Viroja 2016 年 8 月 17 日
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...
  1 件のコメント
Kelvin Viroja
Kelvin Viroja 2016 年 8 月 13 日
Or it can be possible by script run timer or script run counter....

サインインしてコメントする。

採用された回答

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 Center および File ExchangeClocks and Timers についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by