Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encrypt/Decrypt String with Alpha-Numeric only result
Message
De
14/04/2004 13:32:44
 
 
À
14/04/2004 13:20:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00894856
Message ID:
00894860
Vues:
15
>Looking for a way to encrypt/decrypt a string and output the encrypted string with only Alpha and numeric characters something easy for the user to type in.
>I've looked at _crypto but it won't do what I want. Any Ideas ?? Can it be written in native VFP code? And I'd prefer that if you encrypt "mycatisweird" that a resulted encrypted value would be something like "XC56kjrax78cfl52nvhserer" or longer.


Curt:

You can use _crypt.vcx and then apply Strconv(lcEncryptedString,13) to the result. That will get you readable (typeable) characters.

For examples of the use of strong encryption with _crypt.vcx see the provided samples in the Component Gallery or see my article in CoDe Magazine at http://feldstein.net/CodeCryptoArticle.htm or my article on the March 2004 issue of FoxTalk.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform