Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to store encrypted data
Message
De
09/05/2006 18:13:38
 
 
À
09/05/2006 18:07:35
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01120561
Message ID:
01120563
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>Hi all,
>I'm experimenting with encryption using the VFPEncryption71.fll. It seems to work well, but I don't know how to pass the encrypted string to SQL Server. I created a VARBINARY field for this but don't know the syntax for the UPDATE or INSERT.
>
>UPDATE SomeTable SET EncField = BinaryGobbledygook WHERE PK = 123
>Fails with error "Incorrect syntax near..."
>
>UPDATE SomeTable SET EncField = 'BinaryGobbledygook' WHERE PK = 123
>Fails with error "Disallowed implicit conversion..." because of embedded quotes.
>
>Anyone succeed with this or perhaps I need a different way to store encrypted data.
>
>Thanks.
>
>Gary


One way to deal with embedded chars that confuse systems (generally with low-level ASCII chars for example), is to convert to BASE64.

See STRCONV() with parameters 13 and 14
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_foxhelp9/html/e2b743ac-dec7-43ae-82db-ba6fa1e2cbd9.asp


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