@onekeyfe/react-native-bundle-crypto
v3.0.80
Published
react-native-bundle-crypto
Readme
react-native-bundle-crypto
react-native-bundle-crypto
Installation
npm install @onekeyfe/react-native-bundle-crypto react-native-nitro-modules
> `react-native-nitro-modules` is required as this library relies on [Nitro Modules](https://nitro.margelo.com/).Usage
import { ReactNativeBundleCrypto } from '@onekeyfe/react-native-bundle-crypto';
// ...
const hash = await ReactNativeBundleCrypto.sha256OfFile('/absolute/path/bundle.zip');
if (hash.sha256) {
console.log('sha256:', hash.sha256);
}
const isSame = ReactNativeBundleCrypto.secureEqualHex(
'0123456789abcdef',
'0123456789abcdef'
);
console.log(isSame);Contributing
License
MIT
Made with create-react-native-library
