Docs / Get started

Installation

pqlock has no native addons and no third-party dependencies beyond the engine each language already ships with.

01Requirements

LanguagePackageNeeds
TypeScriptpqlock on npmNode 26 or later, OpenSSL 3.5 or later (bundled with Node 26)
Pythonpqlock on PyPIPython 3.12 or later, cryptography 47 or later
Gogithub.com/Motiontic/pqs/packages/goGo 1.27 or later (standard library only)
CLIpql binaries on GitHub ReleasesmacOS, Linux or Windows; or build from source with Go

02Install

npm install pqlock
pip install pqlock
go get github.com/Motiontic/pqs/packages/go@v0.1.0

The 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, VerifyError
import (
    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 version

05Check 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 later
python3 -c "from cryptography.hazmat.backends.openssl import backend; print(backend.openssl_version_text())"
Release status

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/