Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including keypairs with all npm packages installed. Try it out:

var keypairs = require("keypairs")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

keypairs v1.2.14

Lightweight RSA/ECDSA keypair generation and JWK <-> PEM using node's native RSA and ECDSA support


Lightweight JavaScript RSA and ECDSA utils that work on Windows, Mac, and Linux using modern node.js APIs (no need for C compiler).

A thin wrapper around Eckles.js (ECDSA) and Rasha.js (RSA).


  • [x] Generate keypairs
    • [x] RSA
    • [x] ECDSA (P-256, P-384)
  • [x] PEM-to-JWK (and SSH-to-JWK)
  • [x] JWK-to-PEM (and JWK-to-SSH)
  • [x] Create JWTs (and sign JWS)
  • [x] SHA256 JWK Thumbprints
  • [ ] JWK fetching. See Keyfetch.js
    • [ ] OIDC
    • [ ] Auth0
  • [ ] CLI


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free