Classic StuffIt files begin with the signature SIT! (and others such as StuffIt) and contain file headers with separate resource and data fork information, compression methods (stored, RLE, LZW, Huffman, Method 13, Method 15) and CRC-16. Passwords and later formats (StuffIt 5+) differ.
Where it is used
Classic Mac OS software distribution, 1987-2000s.
History
Created by Raymond Lau in 1987; later developed by Aladdin Systems and Smith Micro.
Status today
Legacy; encountered in vintage Mac archives.
Structures read by the implementation
Offsets are in bytes from the start of the buffer named in each heading. Field names are taken from the implementation and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.
struct.ParseDecoded buffer data · BinHexCarver.cs
Offset
Size
Type
Field
Notes
0x0
1
u8
Name Length
at + 4
4
bytes
Creator
at + 10
4
u32 BE
Data Length
at + 14
4
u32 BE
Resource Length
MacBinaryCarver.Carve buffer h · MacBinaryCarver.cs
Offset
Size
Type
Field
Notes
0x0
124
bytes
Crc Ok
0x0
124
bytes
–
0x0
1
u8
–
0x1
1
u8
Name Length
0x41
4
bytes
Type
0x45
4
bytes
Creator
0x4A
1
u8
–
0x52
1
u8
–
0x53
4
u32 BE
Data Length
0x57
4
u32 BE
Resource Length
0x5B
4
u32 BE
–
0x5B
4
u32 BE
Created
0x5F
4
u32 BE
–
0x5F
4
u32 BE
Odified
0x63
27
bytes
–
0x66
4
bytes
Bin3
0x6C
8
bytes
–
0x78
2
u16 BE
–
0x7C
2
u16 BE
Stored Crc
StuffItArchiveModule.IsClassicSignature buffer head · StuffItArchiveModule.cs
Offset
Size
Type
Field
Notes
0x0
1
u8
–
0x1
1
u8
–
0x2
1
u8
–
0x3
1
u8
–
0xA
4
bytes
–
StuffItArchiveModule.WalkClassic buffer head · StuffItArchiveModule.cs
new Signature(0, “SIT!”u8.ToArray(), Confidence.High, “StuffIt 1.5-4.5”),
ST
StuffItArchiveModule
new Signature(0, “ST”u8.ToArray(), Confidence.Low, “StuffIt installer”),
rLau
StuffItArchiveModule.IsClassicSignature
if (head.Length < 14 || !head.Slice(10, 4).SequenceEqual(“rLau”u8))
Structures and constants were extracted from: Carving/Plugins/StuffIt/BinHexCarver.cs, Carving/Plugins/StuffIt/MacBinaryCarver.cs, Carving/Plugins/StuffIt/MacFormats.cs, Carving/Plugins/StuffIt/StuffItCarver.cs, Carving/Plugins/StuffIt/StuffItDecoders.cs, Carving/Plugins/StuffIt/StuffItMethod13Tables.cs, Modules/FileSystems/StuffItArchiveModule.cs. Prose sections are a summary from public sources; verify details before relying on them.