From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Unreal Engine pak file" |
|---|
| claim | "The v10+ path hash is 64-bit FNV-1a (xor the byte, then multiply by prime 0x100000001b3) over the lowercased path encoded as UTF-16LE, with start value 0xcbf29ce484222325 plus the pak's path hash seed (wrapping add). The path is the one stored in the directory index, relative to the mount point (the index form is what repak writes). Unverified: the exact fix that version 11 (Fnv64BugFix) made to this hash is not in repak or CUE4Parse comments I read." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Unreal Engine pak file" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "looking up a file by path in a pak of version 10 or later" |
|---|
| effect | "hash = 0xcbf29ce484222325 + seed; for each byte b of utf16le(lowercase(path)): hash ^= b; hash *= 0x100000001b3; the hash is searched in the path hash index to get the encoded-entry offset" |
|---|
| function | "fnv64_path" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "fnv64 and fnv64_path; generate_path_hash_index at 681-697 calls it for every entry path" |
|---|
| repo | "https://github.com/trumank/repak" |
|---|
| commit | "355b5f62f51959c7cc6dd5a51708646ef483065d" |
|---|
| path | "repak/src/pak.rs" |
|---|
| lines | "699-717" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "pak path hash FNV64" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:21:18.350Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T04:05:17.117Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read repak/src/pak.rs at 355b5f6 lines 675-720: generate_path_hash_index calls fnv64_path(path, seed) per entry; fnv64 starts at 0xcbf29ce484222325 wrapping_add seed, xor then wrapping_mul 0x100000001b3 per byte of path.to_lowercase() encoded as UTF-16LE. Note Rust to_lowercase is Unicode-aware; non-ASCII paths may differ from the engine's own lowercasing (not checked). Version 11 fix remains unverified." |
|---|
|
|
|---|