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

#1 2012-02-17 11:08:04

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Need SB encryption key

I'm working on a project with slayerrobe7 that will make collabs easier, but i need help: i need the encrypion key for SBs so i can easily edit them with the program, and still run it in scratch. Does anyone have this?

Offline

 

#2 2012-02-17 11:09:01

rabbit1131
Scratcher
Registered: 2009-10-16
Posts: 1000+

Re: Need SB encryption key

I'm thinking Advanced Topics or Questions About Scratch.


The Intergalactic Adventures of Revesilia! I hope you will partake in this gigantic undertaking, to build the sequel to the hit map The Adventures of Revesilia! The Intergalactic Adventures of Revesilia Map Builders Application thread! http://internetometer.com/image/35004.png

Offline

 

#3 2012-02-17 11:10:46

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Need SB encryption key

rabbit1131 wrote:

I'm thinking Advanced Topics or Questions About Scratch.

Advanced topics might be good, i'll request that it be moved.

Offline

 

#4 2012-02-17 11:17:54

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Need SB encryption key

I don't there's any encryption for SB files. It's more of just how the bytes are put to form the saved data... and there should be a Wiki about that.

Oh, as well as a couple AT threads about it  smile

Offline

 

#5 2012-02-17 11:19:14

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Need SB encryption key

Moving to Advanced Topics - hang on!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#6 2012-02-17 11:20:02

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Need SB encryption key

LS97 wrote:

I don't there's any encryption for SB files. It's more of just how the bytes are put to form the saved data... and there should be a Wiki about that.

Oh, as well as a couple AT threads about it  smile

well, i want to know how i could convert that from "^^#@%^@" or something like that to "move [5] steps"

Offline

 

#7 2012-02-17 11:31:26

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Need SB encryption key


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#9 2012-02-17 14:23:05

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Need SB encryption key

Doing what you want is kinda complicated. I made a little wiki collecting together all the information on the Scratch file format; it's similar to the link posted above, with some updates.  smile

I have a Python library somewhere that should be able to do this (it still has a few quirks) -- I keep promising myself I'll upload it sometime...


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#10 2012-02-17 15:13:36

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Need SB encryption key

I think i get it, i need to deserialize the .SB files. the problem is, I'm not working with squeak. Would it be possible to convert the objects to java?

Offline

 

#11 2012-02-17 15:26:04

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Need SB encryption key

decompile the scratch applet.jar and user the ObjReader


http://i.imgur.com/1QqnHxQ.png

Offline

 

#12 2012-02-17 15:27:36

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Need SB encryption key

i thought you could edit them using notepad rather easily - the only problem was that the scratch app wouldn't load the sb up again

TRocket need your help again

Last edited by muppetds (2012-02-17 15:29:34)


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#13 2012-02-17 15:28:28

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Need SB encryption key

muppetds wrote:

i thought you could edit them using notepad rather easily

it's impossible to understand, although it is easy to edit.

Offline

 

#14 2012-02-17 15:30:09

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Need SB encryption key

samtwheels wrote:

muppetds wrote:

i thought you could edit them using notepad rather easily

it's impossible to understand, although it is easy to edit.

I remember there was a thread a while back about this


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#15 2012-02-17 15:42:11

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: Need SB encryption key

muppetds wrote:

samtwheels wrote:

muppetds wrote:

i thought you could edit them using notepad rather easily

it's impossible to understand, although it is easy to edit.

I remember there was a thread a while back about this

i remember that, but no one figured it out. it was started by scimonster.

Offline

 

#16 2012-02-18 02:09:04

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Need SB encryption key

samtwheels wrote:

muppetds wrote:

samtwheels wrote:


it's impossible to understand, although it is easy to edit.

I remember there was a thread a while back about this

i remember that, but no one figured it out. it was started by scimonster.

Actually, the reason nobody figured it out was because the Scratch file is a mixture of ASCII and plain integer data. So Notepad and TextEdit try hard to decode the ASCII bit, and the plain int data is either shown as a special symbol, or hidden. Now when you edit and save in notepad or TextEdit, the hidden int bytes are omitted, and the file goes whacky in Scratch.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

Board footer