npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@iden-q/post-quantum

v1.0.3

Published

IdenQ post-quantum cryptography (cipher_payload v2, login_envelope v1) - generated from the IdenQ Crypto IR

Readme

@iden-q/post-quantum (TypeScript) — generated by iqcgen 1.0.3

Do not edit these sources. They are compiled from the IdenQ Crypto IR in specs/ and regenerated with iqcgen generate.

Requires: Node 20+ (LTS 22 and 24 tested); browsers from Chrome 111, Firefox 113, Safari 16.4, Edge 111.

npm install && npm test

Runs in the browser and in Node 20+: the only platform APIs used are crypto.getRandomValues and TextEncoder/TextDecoder. Base64 is implemented in runtime.ts, so nothing depends on btoa or Buffer.

Passphrase-rooted hybrid post-quantum secret encryption (cipher_payload v2)

A passphrase is stretched with Argon2id into a master key; an ML-KEM-768 keypair is derived deterministically from that master key (so nothing has to be stored or synced); encapsulating to it yields a post-quantum shared secret which is mixed with a symmetric KEK to wrap a random per-secret data key. An attacker needs the passphrase — breaking ML-KEM alone, or recording traffic today to decrypt after a quantum computer exists, does not help.

import { encrypt, decrypt } from '@iden-q/post-quantum';
  • async encrypt(plaintext: string, passphrase: string) — Encrypt a secret under a passphrase.
  • async decrypt(payload: struct, passphrase: string) — Decrypt a payload with the passphrase that produced it.

cipherPayloadToJson() produces exactly the wire object the IdenQ services expect (base64url); cipherPayloadFromJson() validates one.

Hybrid X25519 + ML-KEM-768 public-key envelope (login_envelope v1)

Seals a short credential to a recipient's static hybrid public key. Classical and post- quantum defence in depth: an interceptor who strips TLS must break BOTH X25519 and ML- KEM-768 to recover the key-encryption key, and neither alone is enough. The recipient opens it with the matching private keys.

import { seal, unseal, deriveRecipientKeys } from '@iden-q/post-quantum';
  • seal(plaintext: bytes, recipientXPk: bytes, recipientMlKemEk: bytes) — Seal a plaintext to a recipient's static hybrid public key.
  • unseal(envelope: struct, xSk: bytes, mlKemDk: bytes) — Open an envelope with the recipient's private keys.
  • deriveRecipientKeys(seed: bytes) — Derive a recipient key set deterministically from a 96-byte seed.

envelopeToJson() produces exactly the wire object the IdenQ services expect (base64); envelopeFromJson() validates one.

Licence

IdenQ Proprietary Licence. See LICENSE — this software is licensed, not sold. Third-party components keep their own terms; see THIRD-PARTY-NOTICES.md.