Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic daily Password Generator
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00389628
Message ID:
00389713
Views:
24
>It SURE would be nice if the message editor/parser for UT would NOT ignore tabs (and spaces?) at the beginning of lines. It can be a tad irritating to go to the trouble of formatting one's code to have it look unformatted when the message is viewed online. Sheesh...


That's what the < pre > your code here < /pre > tags do for you:
IF ThisLooksOKtoYou
  ThenItMustHaveWorked
ENDIF
Try to do a reply to this message so you can see the codes.

>
>- Gerry
>
>>>Anyone know of a routine or algorithm that would generate a new maybe unique 1-8 position value based on date?
>>>
>>
>>I do this to be able to give users a single day password to a protected website. All you need is a hardcoded formula to calculate a password based on the date, and to make sure that the formula is not known. Here is a simplified version of my formula:
>>
>>PROCEDURE CalcPassWord
>> LPARA tdSeedDate
>> lcCheckString = SYS(2007,DTOC(tdSeedDate) )
>> lcPassWord = ""
>> FOR i = 1 TO LEN(lcCheckString)
>> lcPassWord = lcPassWord + CHR(VAL(SUBS(lcCheckString,i,1)) + 100)
>> ENDFOR
>> RETURN lcPassWord
>>ENDPROC
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform