Norse Polytheistic Mythology
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    simple-rsapublic

    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/

    Keywords

    none

    install

    npm i simple-rsa

    Downloadslast 7 days

    3

    version

    0.0.2

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar