Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Hex signature for odt files
Hex signature for odt files
 
   NeoOffice Forum Index -> Random Whatnot
View previous topic :: View next topic  
Author Message
Bones_08
Blue Pill


Joined: Mar 14, 2009
Posts: 3

PostPosted: Sat Mar 14, 2009 12:10 pm    Post subject: Hex signature for odt files

Im trying to retrieve a file that i accidently deleted, and it says that i need a hex signature for it. I have no idea what this is, so if someone could help me out that would be great
Back to top
James3359
The Merovingian


Joined: Jul 05, 2005
Posts: 685
Location: North West England

PostPosted: Sat Mar 14, 2009 1:22 pm    Post subject:

Your file recovery software is looking for the hexadecimal number(s) which are the 'fingerprint' for the type of file you are trying to recover. I'm sorry that I don't know what the hex signature is for the file type you are looking for. I think there is a good chance someone else here does, and hopefully you will get a response.
Back to top
Bones_08
Blue Pill


Joined: Mar 14, 2009
Posts: 3

PostPosted: Sat Mar 14, 2009 2:05 pm    Post subject:

Thanks, I hope you're right about somebody being able to help me. I lost all of my history class notes and i really need them if im gonna pass this course
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Sat Mar 14, 2009 4:44 pm    Post subject:

Does the message refer to "SHA1" or "MD5"? Those are hex "fingerprints" for files, but they can only be computed if the file exists Sad I don't have much experience with file recovery software myself, so I'm probably not familiar with the term.

ed
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Sat Mar 14, 2009 7:19 pm    Post subject:

This one site has two different "hex signatures" listed of OpenDocument .odt files, one and two (it also has some signatures for non-OpenDocument .odt files). No clue what's going on; that's just what Google found.

Do you suppose these are sort of like Magic numbers?

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
James3359
The Merovingian


Joined: Jul 05, 2005
Posts: 685
Location: North West England

PostPosted: Sun Mar 15, 2009 12:42 am    Post subject:

From the Oasis site
Quote:
17.4 MIME Type Stream
If a MIME type for a document that makes use of packages is existing, then the package should contain a stream called "mimetype". This stream should be first stream of the package's zip file, it shall not be compressed, and it shall not use an 'extra field' in its header (see [ZIP]).
The purpose is to allow packaged files to be identified through 'magic number' mechanisms, such as Unix's file/magic utility. If a ZIP file contains a stream at the beginning of the file that is uncompressed, and has no extra data in the header, then the stream name and the stream content can be found at fixed positions. More specifically, one will find:
a string 'PK' at position 0 of all zip files
a string 'mimetype' at position 30 of all such package files
the mimetype itself at position 38 of such a package.

50 4B are the hex numbers for PK. I don't know what your recovery software is inviting you to give it at this point, but the first two hex numbers in an .odt file should be 50 4B Then beginning at position 30 you should find the hex characters which represent the word 'mimetype' - 6d 69 6d 65 74 79 70 65
Is this any help?
Back to top
Bones_08
Blue Pill


Joined: Mar 14, 2009
Posts: 3

PostPosted: Mon Mar 16, 2009 8:57 am    Post subject:

so you saying the first 4 characters in the signature are 50 and 4B, i dont understand what you mean by beginning at position 30 you should find the hex characters which represent the word 'mimetype' - 6d 69 6d 65 74 79 70 65, could you explain. It also asks for an offset of signature in file, what does this mean?
Back to top
James3359
The Merovingian


Joined: Jul 05, 2005
Posts: 685
Location: North West England

PostPosted: Mon Mar 16, 2009 10:24 am    Post subject:

OK, I don't know how much I'm going to be able to help you with this because I haven't done it myself. You are obviously using a file recovery package and it would be useful to know which package and to have more detail about what it is asking you to do.

In general principle it works like this. In the normal way when you delete a file all that happens is that your system removes the information on your hard disk which reserves that part of your disk for your file. As a result the system then regards that part of the disk as available for use again. However, until your system chooses to store fresh data in that location your original data remains and may be recoverable.

Data recovery software works by reading all sectors of your hard disk looking for the raw data which matches the beginning of the file for the kind of file you are trying to recover. When it finds this it know it has found the start of a file, and it can then attempt to follow it through to its end. It has a database of 'signatures' for the beginnings of different kinds of files, and it also has a facility for you to tell it what signature your file ought to have.

Hexadecimal numbers have two character representations and run from 00 to FF (equivalent to 0-256 in decimal numbers). For all .odt files the first two hexadecimal numbers are 50 and 4B (representing the ASCII characters PK). This may be enough of a digital signature for your recovery software to find the deleted files.

(The 30th-37th characters in an .odt file spell out in hexadecimal numbers the ASCII word 'mimetype' and are represented by the hexadecimal characters I posted previously.)

Does this help you to understand what the recovery software you are using is trying to do?

Incidentally, because the area on your hard disk where your deleted fileis stored is no longer marked as being reserved, it is important not do do anything which will result in data being saved to the disk and potentially overwriting what you are trying to recover.
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> Random Whatnot All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.