Can I use encrypt in Revolution Studio?

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
ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Can I use encrypt in Revolution Studio?

Post by ale870 » Sun Mar 22, 2009 11:53 am

Hello,

I'm very confused. I have RevStudio, but I cannot understand if I can use encrypt function. I find several infor in the documentation, but there is no reference to which version I can apply it.
Furthermore I cannot make it work (I always get the error:

put encrypt "example text" using des,64 with "mykey"


>> Script compile error:
Error description: encrypt/decrypt: cipher name expected, but not supplied


Please can you help me? I made some tests and I was looking for in internet to clarify this problem, but I didn't find anything useful.

One thing more (please give me a suggestion if you can): I need to encrypt a small text, to be sent over internet in a server with PHP scripting. Can you suggest me a good encryption system compatible with PHP?

Thank you for your help.

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

Post by Mark » Sun Mar 22, 2009 2:19 pm

Dear ale870,

You can't use the encrypt command in Media and Studio. This is available in Enterprise only.

I needed a PHP compatible, simple encryption function too and wrote one for PHP and Revolution. It should be relatively easy to do this yourself.

If you're desperate for some source code, feel free to contact me by e-mail (not by private message). For now, I prefer not to make the code public.

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

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Post by ale870 » Sun Mar 22, 2009 3:08 pm

Thank you for your quick reply.
I could write a library in Free Pascal (or similar) to maintain cross platform, but now I have experience in encryption algorithms (even if I used them so much).
I will carefully evaluate if buying (upgrade) to Enterprise version, or if studying something more and writing an encryption library by myself.
I need it to implement a password checking like the one suggested by the great man Carl Sassenrath (see here: http://www.rebol.net/cookbook/recipes/0019.html).

Thank you for your help!

Post Reply