Encryption of data over the internet

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
skindoc4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 77
Joined: Mon Jul 07, 2008 1:22 am

Encryption of data over the internet

Post by skindoc4 »

Can anyone point me in the direction of a reasonably simple method of encryption of data in Revolution. I have searched the archives of the forums without success. I have also had a look at complex schemes such as Blowfish. There is a downloadable implementation of this for REALBasic so I wonder whether anyone has tackled this in Revolution.

Blowfish looks to be way more complex than I need, at least at this stage of my growing acquaintance with Revolution.

I want to be able to exchange moderately sensitive data between sockets, mostly small packets of data but occasionally larger packets such as images. I want this data to have some degree of protection. I would be grateful for any advice.

Alex
skindoc4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 77
Joined: Mon Jul 07, 2008 1:22 am

Encryption of data over the internet

Post by skindoc4 »

More searching - this time found the commands in the dictionary.

Alex
Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm

Post by Bernard »

I don't know why, it is not more heavily advertized on here (or on the rest of the runrev.com website) but the use-revolution mailing list is archived on Nabble, and there are maybe 7 years of informative discussions in those archives.

http://www.nabble.com/Revolution---User-f2297.html

There is SSL available with Rev, but only the Enterprise version has this.


Bernard
skindoc4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 77
Joined: Mon Jul 07, 2008 1:22 am

Encryption of data over the internet

Post by skindoc4 »

Hi Bernard

Thanks. Yes I discovered that I do not have access to the Encryption Library. I have thus written a moderately simple encryption class which utilises random number sequences generated from changing randomseeds. The randomseeds are in turn generated using keys which change but which can be independently derived by both server and client. It probably wouldn't stop a knowledgable hacker but it is idiosyncratic and certainly strong enough to stop casual observers. The data I am intending to send across the net is moderately sensitive to me but of essentially no interest to anyone else so I think it will suffice. Unfortunately since my programming is not commercial, I cannot justify the expense of the Enterprise edition just for the encryption routines.

Now to get the socket side of it sorted......

Thanks for the link to the archives.

Alex
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10104
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Encryption of data over the internet

Post by FourthWorld »

skindoc4 wrote:It probably wouldn't stop a knowledgable hacker but it is idiosyncratic and certainly strong enough to stop casual observers. The data I am intending to send across the net is moderately sensitive to me but of essentially no interest to anyone else so I think it will suffice. Unfortunately since my programming is not commercial, I cannot justify the expense of the Enterprise edition just for the encryption routines.
If a very modest level of encryption is acceptable, you're welcome to use fwPack/fwUnpack:
http://www.revjournal.com/tutorials/han ... s-005.html
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
skindoc4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 77
Joined: Mon Jul 07, 2008 1:22 am

Encryption of data over the internet

Post by skindoc4 »

Hi Richard

Thanks - I'll have a good look at it.

Regards

Alex
Mark Smith
Posts: 179
Joined: Sat Apr 08, 2006 11:08 pm
Contact:

Post by Mark Smith »

You could also try my implementation of rc4:

http://futsoft.futilism.com/revolutionstuff.html

Best,

Mark
skindoc4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 77
Joined: Mon Jul 07, 2008 1:22 am

Encryption of data over the internet

Post by skindoc4 »

Hi again Mark,

Thanks - elegant.

Alex :wink:
Post Reply