From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Bethesda archive (BSA and BA2)" |
|---|
| claim | "Fallout 4 and Starfield BA2 name hash: directory = CRC-32 of the directory path, file = CRC-32 of the stem, extension = first four extension characters packed little-endian." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Bethesda archive (BSA and BA2)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "computing a BA2 file record hash" |
|---|
| effect | "dir u32 = crc32(parent path), name u32 = crc32(stem), ext u32 = up to 4 chars of extension without dot, little-endian packed; crc32 is the table-driven reflected CRC-32 (table starts 0x00000000, 0x77073096) starting from 0, no final inversion in this source" |
|---|
| setting | "path normalized: lowercase, backslash separators" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "hashing namespace: split_path, crc32 with 256-entry table, hash_file_in_place" |
|---|
| repo | "Ryan-rsm-McKenzie/bsa" |
|---|
| commit | "2c7280d5c9199f90b7338d70425181029c9bb2f2" |
|---|
| path | "src/bsa/fo4.cpp" |
|---|
| lines | "245-368" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "BA2 name hash" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:30:21.005Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:40:13.781Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read bsa src/bsa/fo4.cpp hashing namespace lines 245-368 at 2c7280d5: hash_file_in_place normalizes the path, directory = crc32(parent), file = crc32(stem), extension = up to 4 chars packed little-endian; crc32 loop starts at 0 with the 0xEDB88320 table and no final inversion." |
|---|
| notes | "The library's single hashing code is shared by its fo4 formats; I did not check Starfield separately. The claim text says 'CRC-32' while the algorithm has init 0 and no final xor (stated in data)." |
|---|
|
|
|---|