Skip to content

v1.1.0 – XXH3 & BLAKE3, hashString, HMAC/keyed modes

Choose a tag to compare

@Preeternal Preeternal released this 13 Dec 18:47
  • What’s new

    • Added native XXH3-64/XXH3-128 and BLAKE3 on iOS/Android.
    • New hashString(text, algorithm, encoding?, options?) for small payloads. Supports utf8 and base64 input. For real files always prefer fileHash, which streams data from disk.
    • Modes supported in fileHash and hashString: 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 try utf8 / hex / base64 keys.
    • Project migrated to the create-react-native-library template (TurboModule, supports new/old architecture).
    • README: algorithm table and output lengths, thread-safety note, reminder about submodules.
  • Notes

    • After clone: git submodule update --init --recursive.
    • Tests: yarn test.