Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic daily Password Generator
Message
De
07/07/2000 16:33:44
 
 
À
07/07/2000 14:54:19
Ernie Veniegas
Micro System Solutions, Inc.
Calistoga, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00389628
Message ID:
00389673
Vues:
22
>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
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform