I have a video file which has been recorded from the React-native App. Now I want to generate a digital signature, or a hash for this video file, and associate it to the blockchain. Is there any way I can create a hash for the video file in the React-native App?
I want to generate a hash for a given video, in a react native app
2.1k Views Asked by Akshay Arora At
3
There are 3 best solutions below
0
On
You can use rnfs to hash files directly from storage.
You also can use a small package i wrote, react-native-hash, to hash directly from a URL, File or strings, how ever, it only works on Android for now.
You can use
react-native-fetch-blobandjs-sha3moduleAfter encoding your video file to
base64, you can encrypt thebase64value using thehashmodule.If use Expo