react-native-quick-crypto icon indicating copy to clipboard operation
react-native-quick-crypto copied to clipboard

validateString() bug - throws error if string

Open howard-bitruvian opened this issue 2 years ago • 2 comments

https://github.com/margelo/react-native-quick-crypto/blob/ac04d8c622570a99a4834cbceecc976e4e005492/src/Utils.ts#L154

  if (isString) {
    throw new Error(`${name} is not a string`);
  }

validateString method will throw an error if the input is a string

howard-bitruvian avatar Feb 13 '23 00:02 howard-bitruvian

Just sent out https://github.com/margelo/react-native-quick-crypto/pull/175 to fix this since I can't pass any valid hash type to generateKeyPair

jklein24 avatar May 08 '23 03:05 jklein24

Any updates?

danilvalov avatar May 07 '24 14:05 danilvalov