A library for using crypto in native modules
npm install rn-cryptoimport{encryptFile}from"rn-crypto";// ...constsourcePath='/path/where/content/to/encrypt/is';constdestinationPath='/path/where/writing/encrypted/output';constkey='hexadecimal-encryption-file-key';constiv='hexadecimal-initialization-vector';encryptFile(sourcePath,destinationPath,key,iv,(err)=>{if(err){// handle error...}else{// file is encrypted succesfully, it can be found at destinationPath}})See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT