AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Password protect script.

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Eedis NLI
Guest





PostPosted: Mon Feb 08, 2010 4:44 am    Post subject: Password protect script. Reply with quote

I know of several ways to do a password type thing in a script. I don't want to use an INI to store the password, because someone could always just load up the INI and get the password. I want to compile the script also to an .EXE. What're some other ways I could go about doing this? To make a changeable password.
Back to top
porrasnick



Joined: 30 Jan 2010
Posts: 166

PostPosted: Mon Feb 08, 2010 5:13 am    Post subject: Reply with quote

Code:
InputBox Password

if (Password!=1234) ;Whatever you want the password to be.
   ExitApp
Else
Continue
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Feb 08, 2010 5:14 am    Post subject: Reply with quote

access a webpage and download the string, and check with the user's input
Back to top
Guest






PostPosted: Mon Feb 08, 2010 5:16 am    Post subject: Reply with quote

btw, INI is a good method, of course u can encrypt the password, and decrypt the string in ur exe
Back to top
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Mon Feb 08, 2010 5:34 am    Post subject: Reply with quote

Quote:
btw, INI is a good method, of course u can encrypt the password, and decrypt the string in ur exe


Hmm... I could do some kind of encryption function. Set the password in the program, encrypt it with some algorithm, and save it to the INI. When someone goes to view the password, it's just a bunch of random characters. Then it gets to the problem that someone could mess up those random characters so that the password doesn't work in the program. Or find out one character, then change the password to that one character. Anyone could change the password as they wanted. Hell, they could just delete the password in general. :/

I need a good method without using the INI at all.

Quote:
InputBox Password

if (Password!=1234) ;Whatever you want the password to be.
ExitApp
Else


This wouldn't work. That method does not allow the password to be changeable. I've already used that exact method in another application, but this program I'm making, other's will be using. So the password must be able to be changeable to whatever the user wants it to be.
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
None



Joined: 28 Nov 2009
Posts: 3086

PostPosted: Mon Feb 08, 2010 5:40 am    Post subject: Reply with quote

You could put the encypted password in the registy most people would not think to look there.
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Feb 08, 2010 5:42 am    Post subject: Reply with quote

instead of saving in local pc, i would save it online
and check the string every time the exe runs
Back to top
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Mon Feb 08, 2010 10:42 am    Post subject: Reply with quote

How would it update the password online when the user changes their password. That, and what if the user doesn't even have internet access? This isn't just for me, it's for other's.

Although, I do like the registry idea, I will have to go with that. Thank you. Smile
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group