simbo1905 / thinbus-srp-npm

This package provides a Javascript Secure Remote Password SRP SRP6a implementation for web browsers to perform a zero-knowledge proof-of-password to a web server.
101 stars 14 forks source link

Using in a React Native project for a bluetooth connection #14

Open t3db0t opened 3 years ago

t3db0t commented 3 years ago

Hi there—I'm working on a mobile app in React Native (using the Expo platform) that connects via Bluetooth to a radio module called an XBee. The XBee uses SRP to authenticate, but I'm unsure yet how exactly to use this library in this case.

I'm trying to import the library in ES6 (again, this is a React Native project): import { srpClientFactory } from 'thinbus-srp';

But I'm getting bogged down with some dependency issues (see here: https://stackoverflow.com/questions/68959162/using-the-crypto-node-lib-in-a-react-native-project).

Do you have any tips on how to use this library in Expo/React Native? I see there's a fork called react-native-thinbus-srp where they appear to have fixed this, but I'm not sure how to use that fork since it's not on npm.

simbo1905 commented 1 year ago

Hey, apologies that I did not see this at the time. I am happy to see on StackOverflow that you found a workaround.

I will take a look at the fork and see if I can run the tests with it to get it merged and released.