Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to store numbers in a prg file?
Message
De
10/09/2002 19:29:57
 
 
À
10/09/2002 19:16:06
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00699107
Message ID:
00699122
Vues:
18
>>By a PRG file, do you mean simply a text file, or do you need to insert the information into something that is actually going to be treated as running code?
>
>I envision it as being a compiled file. Could a textfile be encrypted and dencryted before restoring to a table? When I said prg file - i was actually planning to have some code in there too.

Compilation would result in these lines being treated as errors - they aren't valid fox code. While compilation could provide encryption, it'd be difficult to reverse the encryption for later extraction - there's no 'decompile', especially with 'decrypt' available. You'd be better off creating the data file as just that, data, and then using a robust cryptological mechanism, such as the Win32 CryptoAPI, to handle encryption and decryption of the data values.

You could embed the lines shown as comments, but compilation with encryption strips comments. You could enclose them in a text block. It seems like a poorly considered approach.

>
>Thank you for your time Ed.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform