Fork Me on GitHub

jsrsasign

opensource free pure JavaScript cryptographic library supports RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, CMS SignedData, TimeStamp, CAdES and JSON Web Signature(JWS)/Token(JWT)/Key(JWK)

Download this project as a .zip file Download this project as a tar.gz file
TOP | jsjws | DOWNLOADS | TUTORIALS | API REFERENCE | DEMOS | NPM |

FEATURES

The 'jsrsasign' library provides following features in pure JavaScript.

NEWS

2015-Jun-11:
Release 4.8.3 is now available. ASN1HEX.dump() ASN.1 dump functionality is added. ASN.1 dump tool is also available.
2015-Jun-06:
Release 4.8.2 is now available. Small fix in KEYUTIL.getKey and npm jsrsasign officially released.
2015-Jun-03:
Release 4.8.1 is now available. KEYUTIL.getKey method now supports RFC 7517 JSON Web Key(JWK) loading for RSA/ECC private/public key.
2015-Jun-01:
Release 4.8.0 is now available. Now jsjws is marged into jsrsasign and is a part of jsrsasign. Full JSON Web Token(JWT) validation functionality and its demo is added. Bower support is also available.
2015-May-22:
Release 4.7.2 is now available. Parsing X.509v3 extension methods added in X509 class.
2015-May-14:
Release 4.7.1 is now available. This is a small update. Please see ChangeLog.
2014-Jun-08:
Release 4.7.0 is now available.
  • RFC 5126 CAdES Long Term Signature support
  • Demo for CAdES BES/EPES/T is here.
2014-May-26:
Release 4.6.0 is now available.
  • RFC 3161 Time Stamp support
  • Demo for time stamp request and response are available.
2014-May-18:
Release 4.5.0 is now available.
  • RFC 5652 CMS SignedData generation
  • simple CMS SignedData generator tool
2014-Apr-19:
Release 4.2.2 is now available.
  • PKCS#10 CSR(certificate signing request) support in keyutil.js
  • AuthorityKeyIdentifier v3 extension support in asn1x509.js
  • Fake certificate converter tool from CSR for factorable.net key check
2013-Oct-12:
Release 4.2.1 is now available.
  • Add generic PEM private/public key exporting method KEYUTIL.getPEM and it provides support to export to PEM PKCS#8 encrypted private key.
2013-Oct-07:
Node.js npm module of jsrsasign is now registered in the repository. It also includes 'jsjws'.
2013-Oct-06:
Release 4.2.0 is now available.
  • DSA/ECDSA algorithms is now supported most of class and methods like Signature, KEYUTIL, KJUR.asn1.x509 DSA
  • KJUR.asn1.x509.X509Util.newCertPEM method to provide easy issuance of a certificate by JSON data.
Old news is here.

ONLINE TOOL & DEMO

DOWNLOAD

See 'ChangeLog.txt' in detail.

SOURCE CODES

The 'jsrsasign' library contains following source codes.

As for github repository, see https://github.com/kjur/jsrsasign.

API DOCUMENT

The 'jsrsasign'(RSA-Sign JavaScript Library) JavaScript API document is available here.

LICENSE

The 'jsrsasign'(RSA-Sign JavaScript Library) is licensed under the terms of the MIT license reproduced which is simple and easy to understand and places almost no restrictions.

PROGRAMMING TUTORIALS

You can see the list of QUnit unit tests here and I hope they help you understand 'jsrsasign' library and APIs.

MY RELATED PROJECT

PROJECTS THAT USE JSRSASIGN

jwcrypto
JavaScript implementation of JWS, JWT and JWC. The jycrypto is also used by Mozilla BrowserID/Persona. (used here)
jwt-js
JSON Web Tokens implemented in pure JavaScript. (used here)
npm node-bignumber
A pure javascript implementation of BigIntegers and RSA crypto for Node.js (used here)
npm bignumber-jt
A pure javascript implementation of BigIntegers and RSA crypto. (used here)
NDN.JS
a JavaScript client library for Named Data Networking of Univ. of Memphis. (used here)
cryptio
An easy-to-use encryption system utilizing RSA and AES for javascript. (used here)
jspackcrx
Package Chrome extension files using pure JavaScript. (used here)
xml-signer
xmldsig signatures in a browser (used here)

DEPENDENCY