Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encrypted XML
Message
De
26/04/2005 06:06:54
 
 
À
25/04/2005 19:28:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01008286
Message ID:
01008370
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
> does anybody how to encrypt XML? I want to save may applicaion setting using CURSORTOXML instead of registry.It is a good solution to encrypt the output file using encryption algo. or there is a shortcut? or alternative idea

As Christof said, I'd also suggest the Windows CryptoAPI. You have a good working sample with full source code in the FFC, accessible through the Task Pane-Samples or through the Component Gallery-FFC folder.

There is also my old article covering the basics at:
http://www.feldstein.net/CodeCryptoArticle.htm

Another suggestion if you want to save XML is to apply BASE64 conversion after you encrypt, using STRCONV(x,13)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_foxhelp9/html/e2b743ac-dec7-43ae-82db-ba6fa1e2cbd9.asp

This way you'll be saving all printable 'safe' characters.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform