tradle / react-native-crypto

partial implementation of node's `crypto` for react-native
MIT License
372 stars 84 forks source link

Compare and contrast this package with expo-crypto in the README #42

Open pcowgill opened 4 years ago

pcowgill commented 4 years ago

It would be helpful to compare and contrast this package with expo-crypto in the README

https://docs.expo.io/versions/latest/sdk/crypto/ https://www.npmjs.com/package/expo-crypto

mvayngrib commented 4 years ago

@pcowgill i agree, but i won't have time for this...i might accept a PR though :)

mvayngrib commented 4 years ago

@pcowgill for clarify, the main purpose of all these packages (rn-nodeify, react-native-randombytes, react-native-crypto) is compatibility with the node.js apis. expo-[crypto-something] doesn't have this goal

giacomocerquone commented 4 years ago

@mvayngrib mh actually it has this exact goal (among providing a way to let devs encrypt stuff of course) https://docs.expo.io/versions/latest/sdk/crypto/, the first line:

"expo-crypto enables you to hash (encrypt) data in an equivalent manner to the Node.js core crypto API"

mvayngrib commented 4 years ago

@giacomocerquone expo-crypto may provide the same functionality, but it provides a different interface than node.js. react-native-crypto lets you require('crypto') and reuse your node.js code

giacomocerquone commented 4 years ago

Well i'd do a pr to explain this as a starting point to "showcase" the differences