Compression and Encryption
Ray Horsley
Ray at LinkItOnline.Com
Thu Jan 8 08:36:53 EST 2004
Thanks for your reply, Brian. I, too, found the mcEncrypt to be
undocumented. The way I learned of it is through studying Metacard's "Ask
Dialog" stack. If you specify "ask password" it encrypts the user's data.
Short of writing my own encryption/decryption scheme, I may decide to use
base64encode and decode functions of Metacard which uses the base64 (RFC
2045) wherever that comes from, although this doesn't reduce the size of the
data, and it actually appears to increase it somewhat. Let me know if you
can think of any other problems using base64encode.
Thanks,
Ray Horsley
Developer, LinkIt! Software
> Well, I can confirm the problem... the simplest string I could
> replicate the problem with was "a bb a bb".
> As for mcEncrypt, I believe it is undocumented and possibly used in the
> licensing scheme, so it's on purpose that there is no function to
> reverse it.
>
> HTH a little,
>
> Brian
>
>> 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,
>>
>>
>> Ray Horsley Developer, LinkIt! Software
>>
>> _______________________________________________
>> metacard mailing list
>> metacard at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/metacard
>>
>>
>
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
More information about the metacard
mailing list