Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using x3ed in VMP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00380969
Message ID:
00381008
Vues:
16
>>I want to save a password field encrypted into a table. So I issue the following: replace xyz_password with x3ed("E",cPassword), where cPassword = "abc" and the field length is 10. Now if I issue ? x3ed("D",xyz_password) I get 7 goofy characters followed by abc, instead of just 'abc'.
>>
>>The framework does this with password field in the user data entry form and it works fine there.
>>
>>I assume it has something to do with the length of the field in the replace command.
>>
>>What am I doing wrong?
>>
>>Thanks,
>>Paul Acton
>
>Paul,
>The user data entry form uses an instnace of the TxtDEPassword class. The default behavior for this class is to pad the password string with spaces to the length of the password field.
>
>Because the field is encrypted you can't assume any set length so the entire field must be filled.

Ohhhh!!! I feel like an idiot for wasting so much time on this!

It just hit me like a ton of bricks....I want to say usr_password = x3ed("E",padr(cPassword,8))...Right?

Thanks so much,
Paul
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform