Encrypt and Sign Files in One Command
A large share of an organization's sensitive data lives in files. Nightly database exports, backups leaving for another site, files dropped at a partner's. Scripts usually produce them, and those scripts are where post-quantum encryption has to fit.
One binary, five minutes
fpqc is the command line of Feranor PQC Suite. It is a native binary for Linux x64 and Windows x64 that starts in 9 ms and weighs 8 MB, also delivered as a .NET tool and a container image. Here is the essence.
fpqc keys init --subject "CN=Alice, O=Example" fpqc keys export -o alice.pem fpqc encrypt report.pdf -r bob.pem --sign fpqc decrypt report.pdf.p7m --trust alice-signer.pem fpqc sign contract.pdf --detached fpqc inspect report.pdf.p7m
The first command creates the key store, with an encryption key, a signing key and a co-signing key. The others encrypt for Bob while signing, decrypt while verifying the signature, sign a contract, and describe a message with no key at all.
Built for scripts
- Files of any size. Encryption, decryption and detached signatures are streamed, in constant memory.
- Never a half-written file. An output appears only once complete on disk, and a refused decryption leaves no file.
- Stable exit codes. A modified message, a missing key, an algorithm outside the profile each have their own code, which your script can handle.
- JSON output. To record who signed, with which algorithms, and whether the signature was hybrid.
- A clean stop. Ctrl+C or a SIGTERM remove the temporary files and the partial output.
The ANSSI profile applies by default. A command run under the Standard profile says so on standard error, with where that choice came from, so a variable forgotten in an environment never changes the profile silently.
What it costs
On a shared virtual machine with 2 vCPUs, encrypting a 100 MB file takes 0.4 s and decrypting it 1.2 s, because the integrity of the whole message is checked before a single plaintext byte is written. On Windows, the platform provides ML-KEM and ML-DSA but not SLH-DSA, so fpqc encrypts and decrypts there, and signs on Linux.
The right place to add post-quantum protection is the script line that already produces the file.
And for existing archives
The same command moves archives encrypted with RSA or ECDH to post-quantum recipients with fpqc reencrypt, and manages the keys' lifecycle, rotation, backup and restore. Both topics have their own article on this blog.
The suite's components, algorithms, performance and pricing, on one page.
Post-quantum encryption with Feranor PQC Suite ➔