{"library":"rsa-compat","title":"rsa-compat","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install rsa-compat"],"cli":null},"imports":["import { RSA } from 'rsa-compat'","import rsaCompat from 'rsa-compat'","import { generateKeypair } from 'rsa-compat'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { RSA } from 'rsa-compat';\n\nconst options = { bitlen: 2048, exp: 65537, public: true, pem: true };\nRSA.generateKeypair(options, (err, keypair) => {\n  if (err) throw err;\n  console.log('Private Key PEM:', keypair.privateKeyPem);\n  console.log('Public Key PEM:', keypair.publicKeyPem);\n  console.log('Private Key JWK:', keypair.privateKeyJwk);\n  console.log('Public Key JWK:', keypair.publicKeyJwk);\n});","lang":"javascript","description":"Generates an RSA keypair with PEM and JWK exports using async callback.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}