newpie wrote:
Maybe the "password script" can analyze the date and then it will use the appropriate password i specified for that date range or month.
OR perhaps some kind of formula that changes the password month to month, that would be pretty slick too.
I was answering to the second part of the question.
It is hard to explain how this
NumGet() works, but I can assure you that it generates a unique number ( 32bit Integer ) - for every month - for whole of the current century.
You
do not need a password list with this technique.
For example, If you ever need to know what the password will be for year:2019 and month:10, then you may run the following code to see it:
Code:
FormatTime, yymm, 201910, yyMM
MsgBox, % NumGet( yymm )
If you want to generate results for the whole century, try the following:
Code:
Date := 20000101000000
Loop 1200 {
FormatTime, yymm, %Date%, yyMM
FormatTime, yyyymmm, %Date%, yyyy/MMM
list .= yyyymmm " = " NumGet( yymm ) "`n"
ldom := ldom( Date )
EnvAdd,Date, %ldom%, Days
}
FileDelete, passlist.txt
FileAppend, %list%, passlist.txt
Run, passlist.txt
Return
LDOM(TimeStr="") {
; Laszlo : http://www.autohotkey.com/forum/viewtopic.php?p=54502#54502
If TimeStr=
TimeStr = %A_Now%
StringLeft Date,TimeStr,6 ; YearMonth
Date1 = %Date%
Date1+= 31,D ; A day in next month
StringLeft Date1,Date1,6 ; YearNextmonth
Date1-= %Date%,D ; Difference in days
Return Date1
}
Conclusion:
I have shown you a way on how to generate a unique number based on the year and month of the calendar date.
You may further process this unique number to differentiate it between many users, like:
Assign a numeric user-id for every user and some formula to make sure that the password is different for every user.
Hope I was clear.
