GithubHelp home page GithubHelp logo

jsrsa's Introduction

This is a full JS RSA library, designed to work with phpseclib (but mostly¹ compatible with OpenSSL's implementation and in theory all that support PKCS 1.5 padded messages). It's largely compromised of the following libs, bugfixed, extended and made crosscompatible:

 • http://www-cs-students.stanford.edu/~tjw/jsbn/ (bugfixed, extended for verify/sign¹ + support for longer messages inspired by http://bestmike007.com/2011/08/secure-data-transmission-between-pure-php-and-javascript-using-rsa/ )
 • http://lapo.it/asn1js/ (modified to work with jsbn to actually export the data
 • Plus some glue code and helper functions

See example.html for how to use it.

License:

All parts are licensed under one of the MIT licenses, copyrights according to each source file

___________
¹ "mostly" compatible means encryption and decryption will work. The verify/sign methods are not using the correct padding methods as per RFC, but are just "swapped" encrypt/decrypt functions. This works fine with phpseclib, but not with openssl. Dunno about other libs.

jsrsa's People

Contributors

creshal avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.