![]() ![]() You should run CINEMA 4D now, and try out the license code. That key, we can now put into a mail and send it to the customer. It will take our password and a C4D serial and output a license key. We can now upload the page on a web server, and access it from practically anywhere in the world. So that’s all we need for our online license generator. If a password and serial have been provided, it will present the results, otherwise it will just generate input fields for password and serial. ![]() This function simply spits out the HTML code that displays the page. The fact that MD5 is available in PHP out of the box, is another reason why I chose MD5 as the key algorithm in this article. This function is basically an exact copy of MyLicense::CreateKey(), just translated to PHP. This simple password example is just meant for demonstration. It is recommended that you take further measures to secure this page on your server (HTTPS, additional password using. Of course, this is not a 100% secure solution. It is not included in the license key, it just needs to be provided for a license to be generated. The password is simply to prevent unauthorized users from generating licenses. Invalid or no password -> show password form Here is a very basic command line tool that does the job.įont-family: Arial, Helvetica, sans-serif We have a lot of opportunities to choose from. It could also be as simple as a script file (JavaScript, Python, VBscript). That way, we could use all the license source we have written in the previous chapters. Or you could also write it as a separate little CINEMA 4D plugin. ![]() The simplest way to write a license generator is probably to write a little executable binary that takes the user’s information (C4D serial, or whatever) and spits out a license string. This fourth article shows how to write a license generator, that will create keys we can use to unlock the plugin. At one point or another during the work on your plugin you will have to spend some thought a proper license system. Writing a plugin that extends the functionality of CINEMA 4D is often only the first step towards a finished product. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |