Skip to content

lucasfontesgaspareto/node-rncryptor

Repository files navigation

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.

About

A simples RNCrytpor implementation for NodeJS with native crypto module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published