Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encrypty an array
Message
From
11/10/2002 20:58:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00710560
Message ID:
00710587
Views:
13
>How am I able to encrypty an array of around 2000 binary elements and that it generates me a key of maximum 20 characters?

That ratio of data compression is usually not possible. You can create a CRC (cyclical reduncacy check) or checksum, but the compression is not unique, that is, you will not be able to uncompress the data.

See function sys(2007). Remember, the result will not be unique, but if you use this on two different arrays:

1) If the checksum for both arrays is alike, there is a high probability that the arrays are alike.
2) If the checksum is different, the arrays are different.

Saludos, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform