AutoHotkey Community

It is currently May 27th, 2012, 2:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Password protect script.
PostPosted: February 8th, 2010, 5:44 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2010, 6:13 am 
Offline

Joined: January 30th, 2010, 5:50 am
Posts: 166
Code:
InputBox Password

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2010, 6:14 am 
access a webpage and download the string, and check with the user's input


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2010, 6:16 am 
btw, INI is a good method, of course u can encrypt the password, and decrypt the string in ur exe


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2010, 6:34 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
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.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2010, 6:40 am 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
You could put the encypted password in the registy most people would not think to look there.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2010, 6:42 am 
instead of saving in local pc, i would save it online
and check the string every time the exe runs


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2010, 11:42 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
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. :)

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Alpha Bravo, Bing [Bot], Google [Bot], LazyMan, poserpro, rbrtryn and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group