Encrypt on mobile
Mark Talluto
userev at canelasoftware.com
Tue Jan 1 13:11:04 EST 2013
On Jan 1, 2013, at 8:34 AM, Jan Schenkel <janschenkel at yahoo.com> wrote:
> Hi all,
>
> Working on permissions and password protection for Quartam PDF Library, and I have a need for RC4 encryption at 40 bits.
> Actually, I do have a working plain LiveCode implementation by now, but the 'encrypt' command can do it too and is much faster.
>
> Here's the rub: I read in the release notes for the mobile versions that "industrial strength encryption" is not supported.
> So here's a few questions for the iOS/Android developers on the list:
> - does a script with 'the cipherNames' or 'encrypt' in it still work, or does it fail to compile?
> - does 'the cipherNames' return empty or does it generate an error?
> - does the 'encrypt' command return an error in 'the result' or does it generate an error?
>
> An example of a simple test script:
> ##
> on mouseUp
> put "plain text" into tData
> put "dakey" into tKey -- 40 bits = 5 bytes
> if "rc4-40,40" is among the lines of the cipherNames then
> encrypt tData using "rc4-40" with key tKey
> if the result is not empty then
> answer error the result
> else
> answer information "RC4-40 returned:" && it
> end if
> else
> answer information "RC4-40 not available"
> end if
> end mouseUp
> ##
>
> Thanks in advance for the feedback!
>
> Jan Schenkel.
>
> =====
> Quartam Reports & PDF Library for LiveCode
> www.quartam.com
Monte has an external for doing AES encryption. It works on iOS for the moment.
Mark Talluto
canelasoftware.com
More information about the use-livecode
mailing list