Re: Rer: Decrypt problem on Windows solved

2020-12-22 Thread Bob Sneidar via use-livecode
I get a user entered password and encrypt it before storing it. It works cross platform. I suppose it would depend on what is in the original string. For instance option-v produces a checkmark on a Mac, but NOT on a PC and I assume Linux. Normal ASCII-256 characters should work fine. Bob S

Rer: Decrypt problem on Windows solved

2020-12-14 Thread Neville Smythe via use-livecode
> Could you try to textEncode the encrypted data before saving it in the > custom property, and then, in the other platform, textDecode it before > decrypting it? Many thanks Panos, yes, that fixed the problem. It never occurred to me that reading binary data from the custom properties of a

Re: Rer: Decrypt problem on Windows

2020-12-14 Thread panagiotis merakos via use-livecode
Hello Neville, Could you try to textEncode the encrypted data before saving it in the custom property, and then, in the other platform, textDecode it before decrypting it? i.e. to do something like: encrypt myData using myCipher with password myPass put it into tEncryptedData put

Rer: Decrypt problem on Windows

2020-12-14 Thread Neville Smythe via use-livecode
The problem is platform-symmetric. That is, a string encrypted in LC on Windows will not decrypt on the Mac. Linux will not decrypt a string encrypted on the Mac, and presumably vice-versa. I did toy with the idea that the encryption keys might be device dependent, maybe the public and private