react-native-media-crypto
v0.1.4
Published
TODO
Downloads
6
Maintainers
Readme
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;
});