Sign in to follow this  
Followers 0
00BM

Matching Passwords With INI Files

5 posts in this topic

Hi,

Soon im planning to release my first OFFICAL program and want to add a new feature to it. I want to password protect it so the user can password protect the program with his/her chosen password. I have decided to use ini files to do this. I was wondering how to check the password the user enters to the one in the INI file?

Im completely stuck with this yet I know it can be done because the same system is used in the complex shell script.

Any help would be greatly appreciated. Sorry if this has already been posted!

Thanks in advance,

00BM

Share this post


Link to post
Share on other sites



Well, IniRead()

But writing it to a file will make it visible. You should save it encrypted :) _StringEncrypt()

Share this post


Link to post
Share on other sites

I want to password protect it so the user can password protect the program with his/her chosen password. I have decided to use ini files to do this. I was wondering how to check the password the user enters to the one in the INI file?

I think you should use registry entries over INIs. they are much easier, and it is much less likely that someone will tamper with the registry.

Share this post


Link to post
Share on other sites

For INI Read what would I put to check it matches??

A coding example maybe...

Thanks for the speedy reply!

00BM!

Share this post


Link to post
Share on other sites

For INI Read what would I put to check it matches??

A coding example maybe...

Thanks for the speedy reply!

00BM!

This script below is suppose to work

#include<String.au3>
;ConsoleWrite(_StringEncrypt(1,"This is my password","Haha",1))
IniWrite("Settings.ini","Info","Password",_StringEncrypt(1,"This is my password","Haha",1))
MsgBox(64,"Check Ini File","")
MsgBox(64,"Decrypted password",_StringEncrypt(0,IniRead("Settings.ini","Info","Password",""),"Haha",1))

For some reason it doesn't now, I am running v.3.2.10.0 and the example script provided in _StringEncrypt() Helpfile did not encrypt neither decrypt anything.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0