0.1.4 • Published 5 years ago

react-native-media-crypto v0.1.4

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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;
    });