PDA

View Full Version : 6210 text not encryptet, just compressed



fxpal1
22-02-2003, 06:07 PM
The text in 6210 (and 6250, 7110) is NOT encrypted, it is just compressed to save space

if someone would like to have a go here is how to decompress:

The compressed text-chunk is preseed by a 512 bytes compression key (after the flag A8000000) . this key is made up of 256 2byte pairs describing the most frequently used pairs-of-bytes.

00 = 00 00
01 = 00 65
02 = 00 20
03 = 02 00
04 = 01 00
etc.

some entries contains the same hex value all over :

6E = 6E 6E (means "dont translate")

after this the table of lengths follows (as in unicode charsets) tells the number og 2byte pairs

then follows the actual text packed with pointers to the compression key

as an example, in 6210 any language pack, use the first text unit after ENGLISH¤

the length is 3 which means 3 byte-pairs (6 bytes)

content is: 88 01 04 AF 00 3A

using compression key you get:

88 = 00 4D
01 = 00 65
04 = 01 00
AF = 1A 19
00 = 00 00 = 00
3A = 3A 3A = 3A

Result: 00 4D 00 65 01 00 1A 19 00 3A

Using compression key you get:

00 = 00 00 = 00
4D = 4D 4D = 4D
00 = 00 00 = 00
65 = 65 65 = 65
01 = 00 65
00 = 00 00 = 00
1A = 74 0E
19 = 0F 67
00 = 00
3A = 3A

Result: 00 4D 00 65 00 65 00 74 0E 0F 67 00 3A

Using compression key you get:

00 = 00
4D = 4D
00 = 00
65 = 65
00 = 00
65 = 65
74 = 74
0E = 00 09
0F = 6E 00
67 = 67
00 = 00
3A = 3A

Result: 00 4D 00 65 00 65 00 74 00 09 6E 00 67 00 3A

Using compression key you get:

00 = 00
4D = 4D
00 = 00
65 = 65
00 = 00
65 = 65
74 = 74
00 = 00
09 = 69 00
6E = 6E
00 = 00
67 = 67
00 = 00
3A = 3A

Result: 004D 0065 0065 0074 0069 006E 0067 003A = Meeting:

so a text of 8 unicode characters = 16 bytes is compressed into 6 bytes using the compression key

doctormike
22-02-2003, 06:24 PM
Dear Friend you are GREAT!!
I'm working on translating Nokia menus in my native language.
For a long time I'm trying to break the 6210 code without success.
I got your point, butsince I do not understand so much of programming I will consult a friend of mine.
If you could give any additional info it would be appreciated.
regards
Mike

Finn
22-02-2003, 06:36 PM
fxpal1 you "wrote" :)
i ll suppose soon will see the first program for translating 62xx 71xx TEXH chunks :D

fxpal1
22-02-2003, 06:57 PM
i sure hope so, freeware ofcourse

laleas
22-02-2003, 11:42 PM
At last some1 has found a way for these da**ed phones!!!
Thank u very much fxpal1!

00 = 00 00
01 = 00 65
02 = 00 20
03 = 02 00
04 = 01 00
etc.

Could u pls explain how to find the rest? ...05,06....

fxpal1
23-02-2003, 07:16 PM
all 256 pairs is stored at the beginning of the language right after the flag e.g.

4 bytes language id (00000001=english)
4 bytes length
4 bytes identifier (TEXT)
4 bytes flag (A8000000=compressed)
512 compression key ( 256 2byte pairs)
then follows the bytes describing the length of each text (note this is the number of 2byte pairs eg a length of 3 means 6 bytes)
then follows the actual text (compressed)

Al
23-02-2003, 07:22 PM
@fxpal1
BIG THANX for this, info :D
I'll try to make such prog as fast as possible, freeware of course ;)

slikmik
23-02-2003, 07:53 PM
Nice one Al :)

Good to see you in person at last

I do a little programming (emphasis on little) :-D

But im sure you'll do a great job, i wouldnt know where to start with all this :confused:

Mike :cool:

gkagg
23-02-2003, 08:21 PM
Great discovery pal!!! Let this be the start of a "cracking" era for 62xx and 7110 phones!!

liteFun
23-02-2003, 08:37 PM
could this compressing be used for eg 3310?
or maybe for some 5110 mod with animated menus... if compressing text will gain enough space for animations?

fxpal1
23-02-2003, 10:33 PM
i dont know (dont think) you could use compressed data in other phones, but i have tried to load uncompressed text-chunks into 6210, and it works perfectly.

Al
23-02-2003, 11:29 PM
Yes!!! It really works :D, thank you fxpal1!!

http://www.uniquephones.com/nf/files/printScreen.JPG

It's beta version, I'm still working on it (GUI also temporary)

laleas
24-02-2003, 03:16 AM
Oh, thanks Al!!!
That's great!
I hope u release it soon and pls meke it support greek!

ldicdican
24-02-2003, 05:08 AM
@fxpal1,

thanks for the decompression algo!
ur gr8 pal:cool:

@Al,

wow! Al is now working for this gr8 sw AGAIN!

more power to both of u guys!

br,

g3gg0
24-02-2003, 01:14 PM
congratulation, guys :)

u got it
now just the structure of the menus is missing ;)

domsat
25-02-2003, 12:32 AM
@fxpal1
great discovery!

@Al
thanks for everything

there's no stoping nfree!!! more power to all!!!

theremoids
26-02-2003, 05:10 AM
WOW! this is GREAT!!! :D

hoyas
26-02-2003, 09:14 AM
@theremoids

have you already tried it?

theremoids
27-02-2003, 04:23 AM
@hoyas... not yet... i'm too lazy to experiment nowadays. :D :D :D

funshopper_de
28-02-2003, 01:07 AM
...tool too.

Please send me your tool for a test at my Email: [email protected]

Regards Funshopper

laleas
28-02-2003, 03:31 AM
Originally posted by funshopper_de
...tool too.

Please send me your tool for a test at my Email: [email protected]

Regards Funshopper
The prog is not ready yet.
That was just a screenshot from the tool that Al is preparing to release.

eksotic
28-02-2003, 02:46 PM
I've also written a tool to unpack texts in 62xx, maybe i'll upload it tomorrow or something... Unpacking works fine now but I still need to code repacking. :-)

vatics
28-02-2003, 03:47 PM
Your all great man!!!!!
Keep up the good work!!!!

Al
01-03-2003, 01:11 AM
Good news!
I've completed compression algo (it's far from perfect but it works :)), so in about next 12hours will be first release of new soft called PPMMaker :D

Thanx to all =)

Unique
01-03-2003, 01:18 AM
I'm very happy to hear that mate:D

John

theremoids
01-03-2003, 03:28 AM
your so cool Al !!!! great work! i'm so excited to try it. :D

luther
01-03-2003, 11:02 AM
m excited mate! il soon completed my final 6210 mods.:p
tnx 4 ur soft in advance!;)

kudzu
02-03-2003, 06:39 PM
great news, now i can remodify my 6210 :)

funshopper_de
03-03-2003, 02:53 AM
...with 6210 PPM and that not functionalized.

With 6210 Fullbackup funtionalized fine.

The 6250 too.

For the 7110 ive tested Fullbackup and PPM and your tool accept only PPM.

Al
03-03-2003, 08:01 AM
@funshopper_de
This tool DOES NOT SUPPORT WinTesla files format!!! Convert to fls, before using!
I've already said that