Post-quantum WireGuard today: the pre-shared key option Jason Donenfeld points to, step by step WireGuard author Jason A. Donenfeld told the WireGuard mailing list on December 2, 2026 that the project is investigating a v2 protocol with no dates set, and pointed to two post-quantum options available now: WireGuard's optional 256-bit pre-shared key, or a post-quantum key exchange such as Rosenpass run inside the tunnel and fed into the same PSK slot, which refreshes the key every two minutes. Donenfeld said keeping WireGuard's simplicity with today's post-quantum primitives is hard because elliptic curves were an ergonomic sweet spot, and called both current options good solutions as things stand. Setting a PSK takes one command per peer via wg genpsk, which prints 32 random bytes as a 44-character base64 string, and wg show wg0 preshared-keys prints (none) for any peer without one. Post-quantum WireGuard today: the pre-shared key option Jason Donenfeld points to, step by step WireGuard's author says a v2 protocol is in the works and points to two options that work now: a 256-bit pre-shared key, or a post-quantum key exchange run inside the tunnel and fed into the same slot. This page shows how to set up both and how to check they are live. This explains reporting by Jason A. Donenfeld on the WireGuard mailing list: Post Quantum WireGuard, WireGuard v2, ongoing AI discoveries, and so forth Dec. 2, 2026 https://lists.zx2c4.com/pipermail/wireguard/2026-December/009817.html . Read the original first: https://lists.zx2c4.com/pipermail/wireguard/2026-December/009817.html https://lists.zx2c4.com/pipermail/wireguard/2026-December/009817.html In one minute - On December 2 Donenfeld told the WireGuard list the project is working on a v2 protocol, with no dates. - For now he points to WireGuard's optional 256-bit pre-shared key PSK . If it is shared offline, breaking the tunnel means breaking a 256-bit ChaCha20 key, not the elliptic-curve exchange. - If you cannot share a key offline, run a post-quantum key exchange inside the tunnel and put the result in the PSK slot. Rosenpass does that and refreshes the key every two minutes. - Setting a PSK is one command per peer, and both ends must hold the same key. - wg show prints none for any peer without a PSK, so checking is one line. What Donenfeld said The post responds to the recent claims that AI-driven math advances might weaken today's cryptography, and links the NSA's December 2 advisory. It says the project is aware and is charting a path forward. He describes a WireGuard v2 as being investigated, built on WireGuard's versioned crypto design: when a primitive breaks, the version number goes up and new software ships. He is frank that keeping WireGuard's simplicity with today's post-quantum primitives is hard, because elliptic curves were an ergonomic sweet spot. Until then he names two options that work today, and calls both good solutions as things stand. What the pre-shared key slot does WireGuard's handshake is built on Curve25519. The optional PSK is a 32-byte symmetric key that is mixed into that handshake. The wg 8 man page describes it as an extra layer of symmetric-key cryptography mixed into the public-key cryptography, for post-quantum resistance. The effect: an attacker who could solve the elliptic-curve part, now or later from recorded traffic, still needs the PSK to derive the session keys. Without it, the recording stays sealed. The catch is the word pre-shared. If you send the PSK over a channel that itself relies on elliptic curves or RSA, a future break of that channel exposes the PSK too. Donenfeld's condition is a secure offline means. Option one: set a pre-shared key Generate one key per peer pair. wg genpsk prints 32 random bytes in base64, 44 characters long. Our test Mac had no wg binary, so we checked the length with an equivalent: openssl rand -base64 32 also prints 44 characters. wg genpsk peer-a-b.psk chmod 600 peer-a-b.psk sudo wg set wg0 peer