Password software protection?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Nakashima H Soft.
Newbie
Posts: 10
Joined: Fri Jan 24, 2014 12:00 pm
Projects: Syntax Time Travel, Ethicus, Ethicus 2
Organization: Nakashima Heikichi Software
IRC Nick: NHS
Location: México
Contact:

Password software protection?

#1 Post by Nakashima H Soft. »

Hi, Im new on LSF.
First of all I had a question.
I dont know if Ren'Py allow it but, I want to know if I can protect my software with password or licence key.
Something like the Adobe products or any other pc program.
Because I want to my software just be able to download for students and my idea was:
The student send me a mail with the school to he or she study and the purpose, later if be a convincent mail I send it the key.
Later after the student download its just have to enter the key and.. Tadaaa had a activated software.
Also I found this: http://www.makeuseof.com/tag/how-to-pas ... s-program/
But be better to do it just one time and be that on the code of the program.
Tanks anyway! ;D
Please dont be mad about my english, I dont are native american.

User avatar
i1abnrk
Regular
Posts: 38
Joined: Wed Nov 20, 2013 1:50 pm
Projects: Critter Corral, Haremu Kikkemu Mo
IRC Nick: i1abnrk
Deviantart: i1abnrk
Github: i1abnrk
Location: Wisconsin
Contact:

Re: Password software protection?

#2 Post by i1abnrk »

You can use password protection to unzip a zip file. When you zip your distribution, the zip software normally has an option to require a password to unzip it. I think that renpy doesn't offer to do that when it creates the distribution file. You would use another zip tool like Winzip or 7-zip to unzip the distribution file and then use that software again to zip the resulting folder with password protection.
Last edited by i1abnrk on Sat Jan 25, 2014 1:21 am, edited 1 time in total.

Tsapas
Regular
Posts: 69
Joined: Mon Oct 14, 2013 8:18 am
Contact:

Re: Password software protection?

#3 Post by Tsapas »

It is possible indeed, ranging from the most basic password protection to more elaborate solutions. The most basic would be something like this:

Code: Select all

label start:
if not persistent.unlocked:
    $ sn = renpy.input("Please input your serial number", length=20)
    if sn == "1111-1111-whatever":
        $ persistent.unlocked == True
   else:
        text "Invalid serial"
        $ renpy.quit()
So there's a predetermined serial 20 chars long, and if the user does not enter the correct one, the program quits. Else, it carries on normally, i.e. is "unlocked". persistent.unlocked determines if the user has already typed the correct code, so it's an one-off activation.

Of course the ways around such an implementation are too many, but you get the point.

User avatar
Nakashima H Soft.
Newbie
Posts: 10
Joined: Fri Jan 24, 2014 12:00 pm
Projects: Syntax Time Travel, Ethicus, Ethicus 2
Organization: Nakashima Heikichi Software
IRC Nick: NHS
Location: México
Contact:

Re: Password software protection?

#4 Post by Nakashima H Soft. »

Tanks, That help so much, :D

Post Reply

Who is online

Users browsing this forum: Google [Bot]