This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-01-10 19:38:36

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

CloudGaming Panther Gaming Client - Based on Kabam.

I'm starting to take Servine's great idea to store data online for his client, Kabam. But I didn't like how unsecure and unprofessional looking his was. So I set out to make CloudGaming.

First, I'll need a safe, effective way to store data online. I was thinking of using JD1's server code for scratchlive.xtreemhost.com on a different site, or encoding it. What should I do, and how?

The program will hopefully be released also encoded as a .exe file, so that nobody can 'hack' the encryption.

Last edited by SeptimusHeap (2012-01-11 07:52:15)


http://i46.tinypic.com/dw7zft.png

Offline

 

#2 2012-01-10 23:26:54

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

I would suggest using the $_GET with PHP and the get data from URL block in Panther and to validate each request on the server. Doing this will allow you to release the source-code and you won't have to worry as much about hacking.

Offline

 

#3 2012-01-11 07:09:19

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Magnie wrote:

I would suggest using the $_GET with PHP and the get data from URL block in Panther and to validate each request on the server. Doing this will allow you to release the source-code and you won't have to worry as much about hacking.

I barely know any PHP. If you could help me with this, it would really help!

I think I'll change the name though.


http://i46.tinypic.com/dw7zft.png

Offline

 

#4 2012-01-11 07:37:35

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Hey sounds awesome, if only I knew python and php I could help out a little ;-;


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#5 2012-01-11 07:42:58

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

slinger wrote:

Hey sounds awesome, if only I knew python and php I could help out a little ;-;

Yeah. I can do the scratch part, but I need someone to do the web part.


http://i46.tinypic.com/dw7zft.png

Offline

 

#6 2012-01-11 07:59:07

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

SeptimusHeap wrote:

The program will hopefully be released also encoded as a .exe file, so that nobody can 'hack' the encryption.

Why not?!
It isn't that hard and it isn't encrypted if you do it with things like "Panther2EXE".
It is only stored in the .exe file.
(If it would be encrypted than it would be a little bit more secure because the "hacker"
have to search the password key in the program...)


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#7 2012-01-11 12:42:00

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

SeptimusHeap wrote:

I'm starting to take Servine's great idea to store data online for his client, Kabam. But I didn't like how unsecure and unprofessional looking his was. So I set out to make CloudGaming.

First, I'll need a safe, effective way to store data online. I was thinking of using JD1's server code for scratchlive.xtreemhost.com on a different site, or encoding it. What should I do, and how?

The program will hopefully be released also encoded as a .exe file, so that nobody can 'hack' the encryption.

Ok, I join. Can i be leader?  tongue

Anyway, I've devised a MASTER plan.

We will encode it.

Not sure how thats master, but hey?


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#8 2012-01-11 17:53:54

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Servine wrote:

SeptimusHeap wrote:

I'm starting to take Servine's great idea to store data online for his client, Kabam. But I didn't like how unsecure and unprofessional looking his was. So I set out to make CloudGaming.

First, I'll need a safe, effective way to store data online. I was thinking of using JD1's server code for scratchlive.xtreemhost.com on a different site, or encoding it. What should I do, and how?

The program will hopefully be released also encoded as a .exe file, so that nobody can 'hack' the encryption.

Ok, I join. Can i be leader?  tongue

Anyway, I've devised a MASTER plan.

We will encode it.

Not sure how thats master, but hey?

What will you do?

I sort of want to be in charge of how stuff looks (graphics, interface) and some advanced coding.

Last edited by SeptimusHeap (2012-01-11 17:54:05)


http://i46.tinypic.com/dw7zft.png

Offline

 

#9 2012-01-12 10:41:26

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

SeptimusHeap wrote:

Servine wrote:

SeptimusHeap wrote:

I'm starting to take Servine's great idea to store data online for his client, Kabam. But I didn't like how unsecure and unprofessional looking his was. So I set out to make CloudGaming.

First, I'll need a safe, effective way to store data online. I was thinking of using JD1's server code for scratchlive.xtreemhost.com on a different site, or encoding it. What should I do, and how?

The program will hopefully be released also encoded as a .exe file, so that nobody can 'hack' the encryption.

Ok, I join. Can i be leader?  tongue

Anyway, I've devised a MASTER plan.

We will encode it.

Not sure how thats master, but hey?

What will you do?

I sort of want to be in charge of how stuff looks (graphics, interface) and some advanced coding.

Co-owner?


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#10 2012-01-12 15:34:55

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

I know PHP. I could help some.

But I don't want too much responsibility.

Offline

 

#11 2012-01-12 15:46:23

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

I know PHP too, I may advise a little.

How do you want to make this different to JD1's? He does exactly the same thing. Uses the Panther URL blocks to send a $_GET request to a PHP page which then takes the inputs to create/delete/set variables. It's unsecure because all his variables can be viewed by the general public but if that were hidden you would instantly boost security.

Currently, with his system anyone with the variable name can read and write to it. This causes problems if two people want the variable "score" so I suggested he try to get people to add a unique code to the prefix of the variable like so: "sparks123_score". That way only I would be using that variable, the chance of overwriting someone becomes very slim. If you gave each copy of the program it's own unique, uneditable ID then that would work nicely, though you would then have the problem that projects joining together wouldn't be able to share variables which is the whole aim. You can't share your code with someone else without them then being able to use that to easily change your variables at will since they have your code and all the variables names are in their project too.

What you could possibly do is allow users to register their username to a coded variable prefix. I enter my Scratch username and password and the name of the project I'm working on, then your system gives me a prefix for my project variables like "sparks442664". Voila, all my projects can now technically connect to that variable because it is not unique to one copy of the project without the user ever seeing it.

Does that make sense?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#12 2012-01-12 20:23:00

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

sparks wrote:

I know PHP too, I may advise a little.

How do you want to make this different to JD1's? He does exactly the same thing. Uses the Panther URL blocks to send a $_GET request to a PHP page which then takes the inputs to create/delete/set variables. It's unsecure because all his variables can be viewed by the general public but if that were hidden you would instantly boost security.

Currently, with his system anyone with the variable name can read and write to it. This causes problems if two people want the variable "score" so I suggested he try to get people to add a unique code to the prefix of the variable like so: "sparks123_score". That way only I would be using that variable, the chance of overwriting someone becomes very slim. If you gave each copy of the program it's own unique, uneditable ID then that would work nicely, though you would then have the problem that projects joining together wouldn't be able to share variables which is the whole aim. You can't share your code with someone else without them then being able to use that to easily change your variables at will since they have your code and all the variables names are in their project too.

What you could possibly do is allow users to register their username to a coded variable prefix. I enter my Scratch username and password and the name of the project I'm working on, then your system gives me a prefix for my project variables like "sparks442664". Voila, all my projects can now technically connect to that variable because it is not unique to one copy of the project without the user ever seeing it.

Does that make sense?

Ok...

So I guess first I need a web host, but I still don't know how to encrypt the data/exe file...


http://i46.tinypic.com/dw7zft.png

Offline

 

#13 2012-01-13 06:49:59

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

You will need a webhost, yes. Don't use weebly, you need to make sure your host supports PHP and offers a MySQL database  smile

I know a little C# which could be used to make an EXE application but how to securely link this to a Panther project I do not know.

Last edited by sparks (2012-01-13 06:50:45)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#14 2012-01-13 10:14:54

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

SeptimusHeap wrote:

but I still don't know how to encrypt the data/exe file...

You can't encrypt it 100% save.
You can just make a little barrier when you store the panther file encrypted in the .exe.
But this won't work with things like "Panther2EXE"

Last edited by ZeroLuck (2012-01-13 10:15:17)


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

#15 2012-01-13 10:25:46

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Ask how Servine did his, because according to him it's secure.


Posts: 20000 - Show all posts

Offline

 

#16 2012-01-13 10:30:21

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

veggieman001 wrote:

Ask how Servine did his, because according to him it's secure.

Well, I used the encrypter ZeroLuck gave me. To be honest, the only thing you have to do to encrypt is to make sure the file cannot be accessed. How? Ask ZeroLuck


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#17 2012-01-13 10:40:00

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Servine wrote:

veggieman001 wrote:

Ask how Servine did his, because according to him it's secure.

Well, I used the encrypter ZeroLuck gave me. To be honest, the only thing you have to do to encrypt is to make sure the file cannot be accessed. How? Ask ZeroLuck

The problem with that is that in order for the program to run, it must be able to be accessed, therefore making it impossible to prevent hackers.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#18 2012-01-13 10:51:34

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

MathWizz wrote:

The problem with that is that in order for the program to run, it must be able to be accessed, therefore making it impossible to prevent hackers.

What he said. There's no such thing as 100% unhackable. Even Windows and government computers  tongue


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#19 2012-01-13 18:19:13

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

A solution to a lot of these issues is to store passwords as hashes and make the server verify highscores and other public data. Hashing passwords makes it much more difficult to determine another user's password, and ensures that passwords are never actually sent to the server. Making the server verify public data ensures that hackers can't set the values unreasonably.


nXIII

Offline

 

#20 2012-01-13 19:01:36

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

nXIII wrote:

A solution to a lot of these issues is to store passwords as hashes and make the server verify highscores and other public data. Hashing passwords makes it much more difficult to determine another user's password, and ensures that passwords are never actually sent to the server. Making the server verify public data ensures that hackers can't set the values unreasonably.

How? And also, how does hashing work.


http://i46.tinypic.com/dw7zft.png

Offline

 

#21 2012-01-13 19:06:29

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

SeptimusHeap wrote:

How? And also, how does hashing work.

http://en.wikipedia.org/wiki/Cryptograp … h_function

Last edited by nXIII (2012-01-13 19:06:42)


nXIII

Offline

 

#22 2012-01-14 19:43:28

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Cool.

Now how would I do this in Scratch/Panther...?

tongue


http://i46.tinypic.com/dw7zft.png

Offline

 

#23 2012-01-15 12:18:15

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

OK. Made a salt generator. Now how do you hash?


http://i46.tinypic.com/dw7zft.png

Offline

 

#24 2012-01-16 13:10:53

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

Working on findgin a way to hash here. Also trying to think of a way so only the client can submit data, not anyone else. Any ideas?

Here's my backgrounds I've made for the client so far:

http://img714.imageshack.us/img714/7199/cgaming.png
http://img193.imageshack.us/img193/363/cgfire.png
http://img856.imageshack.us/img856/7197 … gblack.png


http://i46.tinypic.com/dw7zft.png

Offline

 

#25 2012-01-16 13:17:59

ZeroLuck
Scratcher
Registered: 2010-02-23
Posts: 500+

Re: CloudGaming Panther Gaming Client - Based on Kabam.

SeptimusHeap wrote:

Also trying to think of a way so only the client can submit data, not anyone else. Any ideas?

This is impossible!
I think you have to read something about networking before doing something like that game...


http://3.bp.blogspot.com/-oL2Atzp0Byw/T465vIQ36dI/AAAAAAAAADo/1vqL4PvhkM0/s1600/scratchdachwiki.png

Offline

 

Board footer