Skip to content

Latest commit

 

History

History
57 lines (32 loc) · 731 Bytes

readme.md

File metadata and controls

57 lines (32 loc) · 731 Bytes

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.