pfy.ch

PQC Keys

I'm a big fan of LARPing security - its so much fun 2 have a silly setup when my realistic threat model is a smash and grab robbery in my own home. I currently have a setup mainly revolving around PGP. I've generated a key on a secure device, backed it up, and then copied it 2 my yubikeys. SSH, commit signing, sops, etc. It's fun!

However, literally today the most OMINOUS statement was posted by the NSA... PLUS a joint statement from a bunch of companies saying basically: "Yeah uhhhh,,, move to PQC ASAP" lmao.

So, even tho my Yubikey can't do everything yet, and not everything supports PQC Keys - I might as well make keys now, sign and publish them w my current key and hope for the best! This is totally another LARP but hopefully this timestamped post w my new keys signed by my old ones can be proof of "me" if RSA is cracked in the next day or two lol. SO:

I'll be using sq to generate the keys since at the time of writing gpg doesn't rlly support it yet. So FYI you'll need 2 use sq or some tool that follows the IETF standard :3c

Warning: Like I said above, I'm LARPing heaps w this - I kno nothing rlly about cryptography other than that its neat :3c so take these instructions below w a grain of salt, they're mostly for my own reference when I forgor how I set things up in the future!

FYI sq in nix is not built against openSSL so it can't do pq pgp lol ;;

Create flake.nix in a directory, then run nix develop <3

{
  description = "Post-quantum key tooling shell";

  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";

  outputs =
    { nixpkgs, ... }:
    let
      forAllSystems = nixpkgs.lib.genAttrs [
        "aarch64-darwin"
        "x86_64-linux"
      ];
    in
    {
      devShells = forAllSystems (
        system:
        let
          pkgs = nixpkgs.legacyPackages.${system};
          sq-pqc = pkgs.sequoia-sq.overrideAttrs (_: {
            cargoBuildNoDefaultFeatures = true;
            cargoBuildFeatures = [
              "crypto-openssl"
              "dane-client"
            ];
            doCheck = false;
          });
        in
        {
          default = pkgs.mkShell {
            packages = [
              sq-pqc
              pkgs.openssh
              pkgs.gnupg
              pkgs.age
            ];
            shellHook = ''
              echo "pqc shell: $(sq version 2>&1 | grep backend)"
              echo "           $(ssh -V 2>&1) | $(gpg --version | head -1) | age $(age --version)"
            '';
          };
        }
      );
    };
}

First I generate the new PGP key:

sq key generate --own-key \
  --name "Violet Heague" --email contact@pfy.ch \
  --cipher-suite mldsa65-ed25519 --profile rfc9580 --expiration 3y \
  --output pq-secret.pgp --rev-cert pq-revocation.pgp

This asks 4 a password which I fill in w a randomly generated string :3c Then I get the keys fingerprint:

sq key delete --cert-file=pq-secret.pgp --output=pq-public.pgp
sq inspect pq-public.pgp | grep Fingerprint

I then back these files up 2 a few encrypted USB sticks/locations and yipee!! I have a key I can use in the future when more things support these signatures :3

Sadly, rn there is no Yubikey that supports this key yet + it's not possible 2 ssh w this key but it's a start!!

The new key is available here and will eventually replace my current key! Expect a mix of both from me for the foreseeable future until the PQ key can do everything my current key does <3. (Incl live on my Yubikey (or transdermal implant :0 !! ))


I've signed the following message with both my old and new key:

New Post Quantum Key <3 - Violet Heague (contact@pfy.ch)

My current key that lives on my Yubikey has a fingerprint of:
        3475 49D3 9011 9D28 235A  A5D6 4CC1 6E4F FB23 D190

My new keys fingerprint is:
        FFF9 7CC5 77FA 7626 B819 39D8 4ACF AD18
        291F 09E1 E212 51A3 AF7D 3D03 4A3C 463E

Both keys r mine!!~ this message is signed with both :3c

2026/12/03 AEDT

You can verify with:

gpg --verify statement.txt.asc statement.txt # Assuming u have imported my public key
sq verify --signer-file pq-pfych.pgp --signature-file statement.txt.pq.sig statement.txt # Download pq-pfych.pgp from my site