Installation
pqlock has no native addons and no third-party dependencies beyond the engine each language already ships with.
01Requirements
| Language | Package | Needs |
|---|---|---|
| TypeScript | pqlock on npm | Node 26 or later, OpenSSL 3.5 or later (bundled with Node 26) |
| Python | pqlock on PyPI | Python 3.12 or later, cryptography 47 or later |
| Go | github.com/Motiontic/pqs/packages/go | Go 1.27 or later (standard library only) |
| CLI | pql binaries on GitHub Releases | macOS, Linux or Windows; or build from source with Go |
02Install
npm install pqlockpip install pqlockgo get github.com/Motiontic/pqs/packages/go@v0.1.0The Go import path says pqs because that is the repository name, Motiontic/pqs. It is the same project as pqlock on npm and PyPI.
03Imports
import { keyset, seal, sign, tokens, PQLOpenError } from 'pqlock';from pqlock import keyset, seal, sign, tokens
from pqlock.errors import OpenError, VerifyErrorimport (
pql "github.com/Motiontic/pqs/packages/go"
"github.com/Motiontic/pqs/packages/go/keyset"
"github.com/Motiontic/pqs/packages/go/seal"
"github.com/Motiontic/pqs/packages/go/sign"
)04The pql command line
The pql CLI creates keysets, seals, opens, signs, verifies, scans a repository for quantum-vulnerable crypto and writes a CBOM. Download a signed binary from GitHub Releases and check it against the release key, or build it:
git clone https://github.com/Motiontic/pqs && cd pqs/cli
go build -o pql .
./pql version05Check the engine
ML-KEM and ML-DSA need OpenSSL 3.5 or later under Node and Python. A quick check:
node -p "process.versions.openssl" # 3.5.x or laterpython3 -c "from cryptography.hazmat.backends.openssl import backend; print(backend.openssl_version_text())"v0.1.0 is being prepared for release. Until the packages are published, use the repository directly: import from packages/ts/index.ts, or PYTHONPATH=packages/py.
pqlock v0.1.0 · unaudited preview · source of truth: spec/