react-native-media-crypto
0.1.4 • Public • Published react-native-media-crypto
A encryption library made to encrypt and decrypt videos so that no user can steal your downloaded videos by browsing the file manager.
- Encrypting video files
- Decrypting video files
Getting started
$ npm install --save react-native-media-crypto
Usage
import MediaCrypto from "react-native-media-crypto";
MediaCrypto.encrypt(`${localPath}`)
.then(result => {
console.log("encryption done");
})
.catch(error => {
throw error;
});
MediaCrypto.decrypt(`${localPath}`)
.then(result => {
console.log("decryption done");
})
.catch(error => {
throw error;
});
Package Sidebar
Install
npm i react-native-media-crypto
Weekly Downloads