RSA utility library for Node.js that works on Windows, Mac, and Linux with or without a C compiler. Current version is 2.0.8, released under a permissive license. It wraps ursa (when available) or node-forge for key generation, import, export, signing, and CSR creation. Key differentiators include cross-platform support without native compilation, JWK export/import, and integration with ACME.js and Greenlock.js for Let's Encrypt certificate management.
npm install rsa-compatNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Generates an RSA keypair with PEM and JWK exports using async callback.
Pass options object: RSA.generateKeypair({ bitlen: 2048, exp: 65537, ... }, cb).Use RSA.import({ keypair: keypair, ...options }).Provide header and protect arguments: RSA.signJws(keypair, header, protect, payload).
If you need ursa, install it explicitly: npm install ursa-optional.
Use `import { RSA } from 'rsa-compat'` instead of `import RSA from 'rsa-compat'`.Install ursa-optional: `npm install ursa-optional` or set NODE_OPTIONS to skip.
No dependency data recorded yet.