Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Type of field to store encrypted value
Message
 
 
À
02/04/2019 16:20:13
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01667839
Message ID:
01667852
Vues:
55
>>>>Hi,
>>>>
>>>>I am using cipher() function to encrypt a long string (250 char). Then I need to store the encrypted value into a field of a SQL Server table. Can the field be type CHAR(250)? or it must be NCHAR(250)?
>>>>
>>>>TIA
>>>
>>>varbinary(max) should work, I think.
>>
>>This is not what I am asking. I want the field to be exactly 250 char long. I am just not sure if it has to be CHAR or NCHAR (because of some characters that it has to store).
>
>We routinely store encrypted values in char() fields, but mind you, "AutoTranslate=No;" must be in your connectstring, or else your characters may suffer codepage conversion.

I am not familiar with AutoTranslate. Is this a SQL or VFP setting?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform