How write LIMITED EDITION matlab script ?

2 visualizaciones (últimos 30 días)
Kelvin Viroja
Kelvin Viroja el 13 de Ag. de 2016
Respondida: Kelvin Viroja el 17 de Ag. de 2016
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 comentario
Kelvin Viroja
Kelvin Viroja el 13 de Ag. de 2016
Or it can be possible by script run timer or script run counter....

Iniciar sesión para comentar.

Respuesta aceptada

John D'Errico
John D'Errico el 13 de Ag. de 2016
Editada: John D'Errico el 13 de Ag. de 2016
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 comentarios
Andreas Goser
Andreas Goser el 17 de Ag. de 2016
Editada: Andreas Goser el 17 de Ag. de 2016
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 el 17 de Ag. de 2016
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.

Iniciar sesión para comentar.

Más respuestas (1)

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

Categorías

Más información sobre Clocks and Timers en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by