Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic daily Password Generator
Message
De
20/07/2000 12:55:09
Ernie Veniegas
Micro System Solutions, Inc.
Calistoga, Californie, États-Unis
 
 
À
07/07/2000 16:33:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00389628
Message ID:
00394993
Vues:
15
Thanks for the tip Eric. I'll try for our next release.

>>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
Ernie Veniegas
Micro System Solutions
... sensible software by design
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform