I've built my own login system for a local small business who offers internet for free for the 1st half hour. It works perfectly, and it's okay the way it is, but I want to take it 1 step more. I want to place an algorithm that is date dependent in it. For the password, here's what I was thinking:
set value=
set /p value=
if '%choice%'=='%date% + 100 / 2' GOTO successful login
Now, I know that ^ will probably give me something other than what I want. What I want to do is remove the /s (8/22/07 would then be 82207) and add an equation to it.
The reason that I want to do this is so that it would be fairly hard to crack (they only charge $6/hour, so nobody's going to bring out the big guns) and there wouldd be a new password each day without making manual changes.
I have no idea if this is possible with a batch file. After the login is verified as correct, I want it to start another specified batch file. Please, if you can help, I'd greatly appreciate it. I'm a volunteer programmer
2007-08-22
17:08:55
·
2 answers
·
asked by
T8r
1
in
Computers & Internet
➔ Programming & Design