Information générale
Catégorie:
Produits tierce partie
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement