simple-rsa

0.0.2 • Public • Published

simple-rsa

install:

npm install simple-rsa

a simple rsa module,using for encode password.

Usage:

var RSATool=require('../lib/simple-rsa');

var encParam = {

"e" : "10001",

"n" : "856381005a1659cb02d13f3837ae6bb0fab86012effb3a41c8b84badce287759",

};

var encryptor=RSATool.Encryptor(encParam.e,encParam.n);

var pass1=encryptor('12345');

var pass2=encryptor('this is a test!');

参考资料:

http://www.ohdave.com/rsa/

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i simple-rsa

      Weekly Downloads

      0

      Version

      0.0.2

      License

      none

      Last publish

      Collaborators

      • sxyizhiren