v1.1.0 – XXH3 & BLAKE3, hashString, HMAC/keyed modes
-
What’s new
- Added native XXH3-64/XXH3-128 and BLAKE3 on iOS/Android.
- New
hashString(text, algorithm, encoding?, options?)for small payloads. Supportsutf8andbase64input. For real files always preferfileHash, which streams data from disk. - Modes supported in
fileHashandhashString:hash/hmac/keyed- HMAC — SHA-224/256/384/512 only.
- Keyed — BLAKE3 only, 32-byte key (
utf8/hex/base64).
- XXH3-128 output matches the official xxHash order (low64 → high64) on both platforms.
-
Example & scaffolding
- New example app: hash files or small strings, switch modes (
hash/hmac/keyed), and tryutf8/hex/base64keys. - Project migrated to the
create-react-native-librarytemplate (TurboModule, supports new/old architecture). - README: algorithm table and output lengths, thread-safety note, reminder about submodules.
- New example app: hash files or small strings, switch modes (
-
Notes
- After clone:
git submodule update --init --recursive. - Tests:
yarn test.
- After clone: