# exFAT NameHash: exact ASCII controls

Run `node model.mjs` and `node --test model.test.mjs` with Node.js 22 or later.
No installation, device access, mount or network connection is needed.

The three pairs distinguish unequal names sharing a hash, case-equivalent
spellings, and a hash mismatch. Every pair has the same length. Input is limited
to 1-255 ASCII letters; all other input is rejected. This is not a general
Unicode mapper, directory parser, volume validator or copy-utility emulator.

Method: ASCII a-z to A-Z, UTF-16LE without terminator, rotate the 16-bit
accumulator right by one before adding each byte, reduce modulo 65536.
Source: Microsoft exFAT specification, sections 7.2.5 and 7.6.4:
https://learn.microsoft.com/en-us/windows/win32/fileio/exfat-specification

Tests use known answers, an integer-division reference, all 676 two-letter
uppercase names and their lowercase equivalents, 255 long-name controls and
invalid-input rejection. Exact arithmetic is not a measured failure rate,
benchmark or discovered vulnerability. examples.json binds the model by SHA-256.
Hesela's original implementation and tests are reusable under MIT.
