Reopening - previous
How to Hash Buffer with Expo for an array?
Expo-crypto only supports string inputs, prevents chained hasing or evening signing binaries.
Please provide the following:
- SDK Version: 45
- Platforms(Android/iOS/web/all): all
- Add the appropriate “Tag” based on what Expo library you have a question on.
React-native solution for:
export async function sha256(data) {
const hash = crypto.createHash(‘sha256’);
hash.update(data); // data here is a Uint8Array !
const digest = hash.digest();
}
Previously was using isomorphic-webcrypto but that no longer works.