node-rncryptor

0.1.1 • Public • Published

node-rncryptor

A simples RNCrytpor implementation for NodeJS with native crypto module

Install

$ npm install node-rncryptor

Usage

const RNCryptor = require('node-rncryptor');
RNCryptor.encrypt('text', 'password', { optionsFromEncryptedSource: '', iv: '', key: '' });
//=> 'das90d9012o21sj21is21iw9012iw'

API

encrypt(text, password, options?)

text

Type: string

Lorem ipsum.

password

Type: string

Lorem ipsum.

options

Type: object

optionsFromEncryptedSource

Type: string

Allows to encrypt using options from a existing RNCryptor string

decrypt(text, password)

text

Type: string

Lorem ipsum.

password

Type: string

Lorem ipsum.

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i node-rncryptor

    Weekly Downloads

    3

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    15 kB

    Total Files

    6

    Last publish

    Collaborators

    • lgaspareto