Bug #24655 submitted. 

Bob S


> On Feb 20, 2025, at 8:34 AM, Bob Sneidar <bobsnei...@iotecdigital.com> wrote:
> 
> Thanks Mark. 
> 
> Nice try but no cookie. I will file a bug report shortly. The error I am 
> geting with arrayDecode is:
> 
> 672,49,1
> 465,49,1
> 
> I am sure that is a reference to the code in the library that encodes and 
> decodes arrays. I haven’t gotten to the decryption bit yet. 
> 
> Bob S aka The Bug Man :-)
> 
> 
>> On Feb 19, 2025, at 8:45 PM, Mark Waddingham via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> On 2025-02-18 23:18, Bob Sneidar via use-livecode wrote:
>>> The structure looks like the following:
>>> I reverse the process on the receiving side. It seems to work if I send 
>>> non-binary data in the [“data”] key but if the data is binary, it fails. I 
>>> do not think arrayEncode / decode likes to work with binary data.
>> 
>> I think the problem here is with encrypt/decrypt - there is an anomaly in 
>> that although the operations morally work on binary strings, their internal 
>> signatures (in the engine) take and return normal strings.
>> 
>> This doesn't make any difference if you are saving the data to a binary file 
>> or working on the same platform - but it does make a difference if you store 
>> the value in something which records the difference between strings and 
>> binary strings - like arrayEncode.
>> 
>> If you put `byte 1 to -1 of tEncryptedData into tArray["key"]` then it 
>> should solve the problem as the engine won't be doing any (native) encoding 
>> translation when you pass the data to decrypt on a different platform.
>> 
>> Warmest Regards,
>> 
>> Mark.
>> 
>> -- 
>> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
>> LiveCode: Build Amazing Things
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to