RE: encrypt and decrypt on ios

2014-04-26 Thread Mike Kerner
you can download the livecode dropbox library at http://www.phoenixsea.ch/downloads/Livecode/phxDropboxLib.zip. The explanation of the Dropbox REST API is at: https://www.dropbox.com/developers/core/docs Once you start messing around with dropbox, you will probably want some help with json. Sinc

Re: encrypt and decrypt on iOS

2014-04-26 Thread Dar Scott
Oh, and consider doing the same for the string to be encrypted if consists of characters. On Apr 26, 2014, at 9:54 AM, Dar Scott wrote: > Hi, Sims! > > Are you planning for 7.0? > > Currently, and on 7.0 dp2, both the source and the password (passphrase) in > the syntax you point out are b

Re: encrypt and decrypt on iOS

2014-04-26 Thread Dar Scott
Hi, Sims! Are you planning for 7.0? Currently, and on 7.0 dp2, both the source and the password (passphrase) in the syntax you point out are byte strings. (And, if you use a key, it is a fixed length byte string.) The password is usually interpreted as characters and is typically longer than

Re: encrypt and decrypt on iOS

2014-04-26 Thread Dar Scott
On Apr 26, 2014, at 7:52 AM, Mike Kerner wrote: > The syntax looks like this, assuming: > * The data you want to encrypt is in "what" > * The cipher you want to use is aes-256 > * The key you want to use to do the encryption is in "theKey" > > > encrypt what using "aes-256-cbc" with theKey > put

Re: encrypt and decrypt on iOS

2014-04-26 Thread Jim sims
Mike - thanks loads :-) I was trying to use the dictionary syntax: *Syntax: * encrypt *source* using *cipher* with [password|key] *passorkey *[and salt saltvalue] [and IV *IVvalue*] [at *bitvalue* bit] I found your explanation much more friendly, in fact got it working first shot. We think ali

Re: encrypt and decrypt on iOS

2014-04-26 Thread Mike Kerner
One more thing - don't forget to decode before you decrypt. On Sat, Apr 26, 2014 at 9:52 AM, Mike Kerner wrote: > Jim, > > There are two ways to do encryption on ios in LC: > 1) Monte has an encryption external in his mergEXT suite > 2) You can use the native code. The native code uses OpenSSL.

Re: encrypt and decrypt on iOS

2014-04-26 Thread Mike Kerner
Jim, There are two ways to do encryption on ios in LC: 1) Monte has an encryption external in his mergEXT suite 2) You can use the native code. The native code uses OpenSSL. Due to some technical issues it CAN be less secure than the libraries that Monte is using, but that is something for you t