![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2005
Posts: 14
Rep Power: 0
![]() |
Hi. I'm new. I'm trying to use a code to make my program password protected. It keeps saying:
while password != "abcddcba": NameError: name 'password' is not defined Thanks. |
|
|
|
|
|
#2 |
|
Programmer
|
Insert this somewhere in your code (before this while loop starts)..
password="" |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jul 2005
Posts: 14
Rep Power: 0
![]() |
Thanks.
|
|
|
|
|
|
#4 |
|
Programming Guru
![]() |
The password will be hidden in the source code, so people could easily retrieve it. Raise security by creating your own encrypt and decrypt function, then pre-compile the python file.
|
|
|
|
|
|
#5 | |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#6 |
|
Programmer
|
Bah... if he's asking this question, I think that he is most likely not scripting something which really needs this security. I mean yeah, it's dandy and all, but is it needed?
|
|
|
|
|
|
#7 |
|
Newbie
Join Date: Jul 2005
Posts: 14
Rep Power: 0
![]() |
I'm not that advanced, just starting python. The least I can do is prevent access to the source code. How? I have no clue. I don't have to worry as long as that particular person does not have Python installed in the system. It'll open using command prompt.
|
|
|
|
|
|
#8 | |
|
Programmer
|
Quote:
|
|
|
|
|
|
|
#9 | |
|
Programming Guru
![]() |
Quote:
He said he's new to Python, so that would probably be the easiest way for him. |
|
|
|
|
|
|
#10 |
|
Newbie
Join Date: Jul 2005
Posts: 14
Rep Power: 0
![]() |
Is there anyway to apply or open a Python program sent or found without having Python in the computer system or would you have to change the file type? I just need a simple answer so I know if it's possible in the future.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|