Encrypt and then Decrypt - That is the question

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Encrypt and then Decrypt - That is the question

Post by user#606 » Sat Sep 26, 2009 4:24 pm

I cannot understand the encrypt/decrypt syntax.
So for example, I want to encrypt a file called "secret" with a fixed password called "scramble"

Then to decrypt it at some other time.

The file is always the same name, same place and the password is part of the script.

I have tried:-
PUT (encrypt url "File:secret" using "scramble") into URL "File:scramble"
and
PUT URL "File:scramble" into (decrypt url "File:secret" using "scramble")
but it does not work

What should I have done?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sun Sep 27, 2009 8:21 am

Dear user#606,

Please report any errors and unexpected behavior instead of a simple "it doesn't work".

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

encrypt

Post by reelstuff » Tue Sep 29, 2009 1:42 pm

go to your Rev online and search for encryption there is an example stack there it is not exactly what you want but it may point you in the right direction.

user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Re: encrypt

Post by user#606 » Tue Sep 29, 2009 5:58 pm

reelstuff wrote:go to your Rev online and search for encryption there is an example stack there it is not exactly what you want but it may point you in the right direction.
Thank you reelstuff, I hadn't thought of that. Most helpful!

Post Reply