Compression and Encryption

Shari gypsyware at earthlink.net
Thu Jan 8 07:42:25 EST 2004


>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.

-- 
--Shareware Games for the Mac--
http://www.gypsyware.com


More information about the metacard mailing list