Jump to content

Matching Passwords With INI Files


00BM
 Share

Recommended Posts

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

Link to comment
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.
Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...