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

paranoia-cli

v1.0.2

Published

Post-quantum hybrid encryption CLI — seal and open files with ML-KEM-1024 + P-521 + AES-256-GCM, generate entropy, and manage keypairs.

Readme

paranoia-cli

Post-quantum hybrid encryption CLI — seal and open files with ML-KEM-1024 + P-521 + AES-256-GCM, generate entropy, and manage keypairs from the terminal.

npm License: MIT Node.js

Powered by paranoia-ts · Source: github.com/mateocallec/paranoia.ts


Installation

npm install -g paranoia-cli

Requirements: Node.js ≥ 18. ffmpeg is optional (only needed for --webcam entropy).


Commands

keygen — generate a keypair

paranoia keygen [options]

Derives a hybrid keypair from a master passphrase via Argon2id and saves it to keys.json. The private key is encrypted — the passphrase is never stored.

| Option | Description | |---|---| | --both | ML-KEM-1024 + P-521 hybrid (default) | | --pqc | ML-KEM-1024 only | | --trad | P-521 only | | --webcam | Mix webcam pixel noise into the derivation nonce (requires ffmpeg) | | -o, --output <path> | Output path (default: keys.json) |

paranoia keygen                          # hybrid, interactive passphrase prompt
paranoia keygen --pqc -o alice.json      # ML-KEM-1024 only
paranoia keygen --webcam                 # TRNG-enhanced derivation nonce

seal — encrypt a file

paranoia seal <file> [options]

Encrypts a file to a .para container. The algorithm is auto-detected from the keys in keys.json:

  • Both keys present → Hybrid (ML-KEM-1024 + P-521)
  • ML-KEM key only → PQC-only
  • P-521 key only → Classical ECDH

| Option | Description | |---|---| | -k, --keys <path> | Path to keys.json (default: keys.json) | | -o, --output <path> | Output .para path (default: <file>.para) |

paranoia seal secret.txt
paranoia seal document.pdf -k alice.json -o document.para

open — decrypt a file

paranoia open <file> [options]

Decrypts a .para file. You will be prompted for the master passphrase to unlock the private key.

| Option | Description | |---|---| | -k, --keys <path> | Path to keys.json (default: keys.json) | | -o, --output <path> | Output file path (default: original filename from the .para header) |

paranoia open secret.txt.para
paranoia open document.para -k alice.json -o recovered.pdf

entropy — generate random bytes

paranoia entropy <bytes> [options]

Outputs <bytes> bytes of cryptographically secure entropy as a hex string.

| Option | Description | |---|---| | --webcam | Mix webcam pixel noise via HMAC-SHA3-256 (additive, requires ffmpeg) | | -o, --output <path> | Write to file instead of stdout |

paranoia entropy 32                      # 32 bytes → hex on stdout
paranoia entropy 64 --webcam             # webcam TRNG mixed in
paranoia entropy 32 -o seed.hex          # write to file

The .para file format

Sealed files use a binary container with a self-describing JSON header:

[4B magic "PARA"][1B version][1B mode][4B header length]
[JSON header: originalName, mlkemCt?, p521EphPk?, nonce]
[AES-256-GCM ciphertext + 16-byte auth tag]

Mode values: 0x01 = PQC-only, 0x02 = P-521-only, 0x03 = Hybrid.


The keys.json format

{
  "version": 1,
  "algorithm": "hybrid-mlkem1024-p521",
  "created": "2026-05-11T...",
  "derivationNonce": "<base64>",
  "public": {
    "mlkem": "<base64 — 1568 bytes>",
    "p521":  "<base64 — 67 bytes>"
  },
  "private": {
    "algorithm": "argon2id-aes256gcm",
    "argon2": { "iterations": 5, "memoryKiB": 524288, "parallelism": 4 },
    "nonce":      "<base64>",
    "ciphertext": "<base64>"
  }
}

The private key material is AES-256-GCM encrypted with a key derived from the master passphrase via Argon2id. The plaintext private key is never written to disk.


Webcam entropy (Linux / macOS / Windows)

When --webcam is passed, the CLI captures 8 frames from the default camera via ffmpeg, hashes the pixel data with SHA-3-256, and mixes the result into the system CSPRNG via HMAC-SHA3-256. The output entropy can only be stronger than the base CSPRNG — webcam data cannot reduce it.


License

MIT © Matéo Florian Callec