Description
react-native-argon2 is a React Native wrapper around native Argon2 hashing. It uses the Argon2 implementation on each platform: Argon2Swift on iOS and argon2kt on Android. You pass a password and a salt, plus an optional config object that can set iterations, memory, parallelism, hash length and mode. If you do not want to change any settings, you still pass an empty object as the third argument. The salt is read as UTF-8 text by default, for backward compatibility, and the saltEncoding option set to hex lets you pass a hexadecimal-encoded salt instead. The output includes rawHash, the hexadecimal representation of the hash, and encodedHash, a string representation. The README includes a compatibility table that matches package versions to React Native versions: the 0.1 line covers React Native 0.60 to 0.63.2, and version 1.0.0 covers 0.63.3. Installation follows the getting started steps in the README, and a usage section shows how to set the config values. It is aimed at React Native developers who need Argon2 hashing in a mobile app.…
Highlights
- Argon2 hashing in React Native
- Native Argon2Swift on iOS, argon2kt on Android
- Configurable iterations, memory and parallelism
- UTF-8 or hex salt encoding
- Version table for React Native releases
Ratings & Reviews
No ratings yet
Be the first to rate react-native-argon2.
People also visit

react-native-mask-input
TextInput with mask for ReactNative on both iOS and Android

react-native-advanced-input-mask
Text input mask for React Native on iOS, Android and web

react-native-passcode-status
check if device-level passcode is supported/enabled/disabled

react-native-local-auth
React Native local authentication with touch id or passcode
react-native-argon2 FAQ
What does react-native-argon2 do?
It wraps native Argon2 implementations, so a React Native app can hash a password with an Argon2 configuration.
Which native libraries does it use?
The README lists Argon2Swift for iOS and argon2kt for Android.
Which config options can I set?
Iterations, memory, parallelism, hashLength and mode, passed in an optional config object. Pass an empty object if you change none of them.
What are the salt options?
The saltEncoding option accepts utf8, which is the default, or hex for a hexadecimal-encoded salt.
Which React Native versions does it support?
The README's compatibility table lists the 0.1 package line for React Native 0.60 to 0.63.2, and version 1.0.0 for 0.63.3.
What are the best react-native-argon2 alternatives?
Popular alternatives to react-native-argon2 include react-native-mask-input, react-native-advanced-input-mask and react-native-passcode-status. See all react-native-argon2 alternatives
















