Compression and Encryption

Ray Horsley Ray at LinkItOnline.Com
Thu Jan 8 08:26:22 EST 2004


On 1/8/04 7:42 AM, "Shari" <gypsyware at earthlink.net> wrote:

>> Greetings,
>> 
>> I've run into an interesting compression problem.  The second character in
>> each line of myData is a tab.
>> 
>> on mouseUp
>>   put "A    te" into myData
>>   put "B    te" into line 2 of myData
>>   put compress(myData) into myDataCompressed
>>   put decompress(myDataCompressed) into myDataUncompressed
>> end mouseUp
>> 
>> I get an error trying to decompress this simple bit of data after
>> compressing it.  Any ideas anyone?
>> 
>> On a related note, if I use the following:
>> 
>>   put mcEncrypt(anyData) into anyDataEncrypted
>> 
>> It works fine.  But how do I get it back out?  There seems to be no
>> corresponding mcDecrypt() function.
>> 
>> Any help is greatly appreciated.
>> 
>> Thanks,
> 
> 
> How about replacing the tabs temporarily?  Do a "replace", putting
> something you know doesn't exist anywhere else in the text, in place
> of the tabs.  When you dempress it, put the tabs back.


Thanks, Shari.  I thought of doing this, and it's relatively easy to do,
provided I disallow users from typing the replacement character anywhere in
their data, something I prefer not to get into.  My preference is to address
the problem in Metacard's compression, if possible.  I guess my thinking is,
if this particular string causes erros, are there others?

Thanks,

Ray Horsley
Developer, LinkIt! Software



More information about the metacard mailing list