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

#1 2012-01-13 19:58:27

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

WebChat: The Easy Chatbox Program in Panther

Ever wonder how difficult it is to make a world-wide chatbox in Scratch or a mod?  You have to end up forwarding ports, writing tons of Python or Actionscript or some other code?  Well, fear no more.  WebChat, which will be a completely PHP/MySQL-based world-wide chatbox, is your answer.  Just log in using the compiled Panther project (when released), and soon you'll be able to chat with your friends from Scratch!

WebChat will be compiled to an exe as a security feature.  If you would like to request a version of WebChat configured specifically for your website, please go to Mod Central and PM me (SJRCS_011) with the specifics of your database (must be MySQL; specifics are host, username, password; this info will not be stored, so make sure to set up your .  You will also receive a copy of the PHP scripts designed specifically for your website.
The configured and compiled WebChat program will be free of charge under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Mods, as this will not be hosted on Scratch, I am free to license it as I wish, right?  If I can't, then please edit to to remove the license section.
The PHP scripts will be available under the same license.

WebChat 1.0 (when released) will enable logging into an account on the chatroom.  That account must be confirmed by me before it is active (that way, we won't have people impersonating others).  To confirm your account, simply post here with your username and your account will be confirmed.

Downloads:
None yet

The download for WebChat provided here will be configured for the official WebChat chatbox, where the topic is Scratch and help with Scratch.  Any offtopic posts can result in an account being deactiviated.
In addition, there will be a word filter in place, as well as other safety precautions, such as a record of posts.


If you would like to help in the development of WebChat, please post on this topic.
You MUST have a good knowledge of PHP, Scratcher status, and an account on Mod Central, where most of the communication will take place.
The requirement for Scratcher status is only a precaution.

Any questions?


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#2 2012-01-13 20:05:22

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

Um...the name looks a lot like my topic. "MMO Project: No mesh, No mods, Unlimited Connections."

Also, would this be using custom blocks? 'Cause that is just as bad as remote sensors connections.

-bobbybee (FireMMO Founder, FireMMO Owner, and FireMMO Lead Programmer)


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#3 2012-01-13 20:06:51

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

bobbybee wrote:

Um...the name looks a lot like my topic. "MMO Project: No mesh, No mods, Unlimited Connections."

Also, would this be using custom blocks? 'Cause that is just as bad as remote sensors connections.

-bobbybee (FireMMO Founder, FireMMO Owner, and FireMMO Lead Programmer)

Okay, I'll change the topic name.
And no, it won't use custom blocks.  Just all the regular ones.


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#4 2012-01-13 20:42:22

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: WebChat: The Easy Chatbox Program in Panther

SJRCS_011 wrote:

And no, it won't use custom blocks.  Just all the regular ones.

Then how does it work?


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#5 2012-01-13 20:43:42

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

Thanks about the title. Since it's not using custom blocks, will it be using GET requests. You may want to read this article. (Magnie, of course!)

Last edited by bobbybee (2012-01-13 20:49:12)


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#6 2012-01-13 20:46:07

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

bobbybee wrote:

Thanks about the title. Since it's not using custom blocks, will it be using GET requests. You may want to read this article. (Magnie, of course!)[/url]

Got it in one shot.


zippynk wrote:

SJRCS_011 wrote:

And no, it won't use custom blocks.  Just all the regular ones.

Then how does it work?

Above


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#7 2012-01-13 20:50:00

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

So GET requests? Do you have any encryption measures put in place?


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#8 2012-01-13 20:54:05

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

bobbybee wrote:

So GET requests? Do you have any encryption measures put in place?

Of course.  I don''t want someone to be able to just get on a browser and start interfering.
Though if you want to get your own version, the encryption will be different.

Basically, the outgoing request from the program will run through an algorithim, be sent as a GET request, view the output from the PHP (echo) which is also encrypted, run it through a reverse algorithim, then output the results.
If anything goes wrong uring the process, an error message is generated.

Last edited by SJRCS_011 (2012-01-13 20:56:46)


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#9 2012-01-13 20:56:25

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

In that case are you using "real" encryption. (as in hashing) Or are you using "fake" encryption. (as in XORing against a password)


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#10 2012-01-13 20:58:03

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

bobbybee wrote:

In that case are you using "real" encryption. (as in hashing) Or are you using "fake" encryption. (as in XORing against a password)

a form of hashing
It'll be tough to get by.
I may even include a Captchca in the program.

Last edited by SJRCS_011 (2012-01-13 21:01:05)


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#11 2012-01-13 20:59:23

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

Are you doing it bitwise? I can't remember whether panther does bit by bit blocks natively. Anyways, doing it bitwise is the most efficient and generally will get the best encryption.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#12 2012-01-13 21:02:19

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

bobbybee wrote:

Are you doing it bitwise? I can't remember whether panther does bit by bit blocks natively. Anyways, doing it bitwise is the most efficient and generally will get the best encryption.

I don't want to say too much, but each letter is run through a random algorithim, and the result is the output, as well as another variable, a "key", that is also encrypted in a different way.


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#13 2012-01-13 21:04:52

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

Oh. A key. That wouldn't necessarily be hashing. I think in hashing you completely throw the key away for security purposes. (obviously if you had a key it would be two-way)


I support the Free Software Foundation. Protect our digital rights!

Offline

 

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

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

bobbybee wrote:

Oh. A key. That wouldn't necessarily be hashing. I think in hashing you completely throw the key away for security purposes. (obviously if you had a key it would be two-way)

Maybe I'll do that.  I still haven't decided.

BTW, the key is a single character or a string that tells the php how to decrypt it.

Last edited by SJRCS_011 (2012-01-13 21:29:50)


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#15 2012-01-13 21:22:55

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

Re: WebChat: The Easy Chatbox Program in Panther

Hashing is where you give the "hasher" a string and it mashes it up so it can't be decrypted.

Cryption is where you encrypt a string with a key then decrypt it with a key.

With hashing you can hash the password then store it. After that, when someone wants to login they give you the password, you hash it then check if the hash you just made is the same as the one your stored.

Edit: I think it was really obvious I was going to see this and post in it. xD

Last edited by Magnie (2012-01-13 21:24:53)

Offline

 

#16 2012-01-13 21:28:27

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

Magnie wrote:

Hashing is where you give the "hasher" a string and it mashes it up so it can't be decrypted.

Cryption is where you encrypt a string with a key then decrypt it with a key.

With hashing you can hash the password then store it. After that, when someone wants to login they give you the password, you hash it then check if the hash you just made is the same as the one your stored.

Edit: I think it was really obvious I was going to see this and post in it. xD

I guess I'll hash passwords and encrypt the message.


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#17 2012-01-14 06:43:33

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

That makes a lot more sense.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#18 2012-01-14 07:36:40

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

And I'll try to use sockets, too, though that might take me a little longer to finish this.


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#19 2012-01-14 07:39:11

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

You know, you could always switch your language to something like C. You could easily port my FireMMO C Socket Server over to this, at least parts of it anyway. Even if you don't, I know how you can use sockets with PHP. I've written really small servers with PHP and it is actually not the hard if you have some C and Linux knowledge to back yourself up. Just tell me if you would like me to help your team, or one man show, for that matter.

-bobbybee (FireMMO Founder, FireMMO Owner, and FireMMO Lead Programmer)


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#20 2012-01-14 08:54:40

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

bobbybee wrote:

You know, you could always switch your language to something like C. You could easily port my FireMMO C Socket Server over to this, at least parts of it anyway. Even if you don't, I know how you can use sockets with PHP. I've written really small servers with PHP and it is actually not the hard if you have some C and Linux knowledge to back yourself up. Just tell me if you would like me to help your team, or one man show, for that matter.

-bobbybee (FireMMO Founder, FireMMO Owner, and FireMMO Lead Programmer)

I'd love to have you help me.
After all, your FireMMO is amazing.


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#21 2012-01-14 09:30:53

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

Thanks a lot  smile  Are you going to scratch the code, or are you going to just have me build off of the current codebase?


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#22 2012-01-14 10:23:28

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

Ummm...I only have started working on the client-side (Panther).  So I don't yet have any code for the website (though I had several ideas)


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#23 2012-01-14 10:36:39

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

Re: WebChat: The Easy Chatbox Program in Panther

SJRCS_011 wrote:

Ummm...I only have started working on the client-side (Panther).  So I don't yet have any code for the website (though I had several ideas)

It's better to finish the server first then do the client. That way you know how your client is going to connect and transfer data to and from the server.

Offline

 

#24 2012-01-14 11:58:02

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

Magnie is right. Should I start using actual sockets/remote sensor connections? If so, PHP (porting FireMMO Code), or C/C++? (directly using a stripped down version of FireMMO)


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#25 2012-01-14 12:03:52

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: WebChat: The Easy Chatbox Program in Panther

Sure, go ahead and use PHP.
Then I'll work on the client
And Magnie: when I was working on the client, I had a creation design in mind.  Now that is completely changed.


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

Board footer