Skip to content
rn-crypto / 0.1.12

rn-crypto 0.1.12

Install from the command line:
Learn more about npm packages
$ npm install @internxt/rn-crypto@0.1.12
Install via package.json:
"@internxt/rn-crypto": "0.1.12"

About this version

rn-crypto

A library for using crypto in native modules

Installation

npm install rn-crypto

Usage

import { encryptFile } from "rn-crypto";

// ...
const sourcePath = '/path/where/content/to/encrypt/is';
const destinationPath = '/path/where/writing/encrypted/output';
const key = 'hexadecimal-encryption-file-key';
const iv = 'hexadecimal-initialization-vector'; 

encryptFile(
  sourcePath,
  destinationPath,
  key,
  iv,
  (err) => {
    if (err) {
      // handle error...
    } else {
      // file is encrypted succesfully, it can be found at destinationPath
    }
  }
)

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Details


Assets

  • rn-crypto-0.1.12.tgz

Download activity

  • Total downloads 50
  • Last 30 days 4
  • Last week 1
  • Today 0