Pre-Shared Key (PSK) Generator
Generate cryptographically random Pre-Shared Keys (PSKs) for IPsec/IKEv2 VPNs, WireGuard tunnels, WPA2/WPA3 networks, and RFC 8784 post-quantum VPN hardening—100% locally in your browser.
32 random bytes (256 bits) in Base64 — ideal for strongSwan, Cisco, Fortinet, pfSense, and AWS Site-to-Site VPN pre-shared keys.
In plain terms: a gaming PC guessing a million passwords per second would need 132,943,112,026,157,700,000,000,000,000,000,000 quintillion times the age of the universe. Even someone renting every cloud server on Earth — a trillion guesses per second — would need 132,943,112,026,157,700,000,000,000,000 quintillion times the age of the universe. Nobody is guessing this password; the only realistic risks are it being reused or phished.
Generated pre-shared keys
Where Pre-Shared Keys Are Used
IPsec / IKEv2 Site-to-Site VPNs
Authenticates two gateways (pfSense, strongSwan, Cisco ASA, AWS VPN, Fortinet, Ubiquiti) using a shared 256-bit secret stored in ipsec.secrets or swanctl.conf.
WireGuard PresharedKey (Noise_IKpsk2)
An optional 32-byte Base64 symmetric key added per [Peer] alongside X25519 public keys, providing post-quantum protection against recorded-traffic decryption.
WPA2 / WPA3-Personal WiFi
Wireless access points accept 8–63 printable ASCII characters (or a raw 64-character hex PSK) to derive per-station session keys.
TLS-PSK & IoT / Embedded Links
Lightweight devices and service meshes using TLS 1.3 PSK mode avoid certificate overhead by sharing high-entropy 256-bit symmetric keys.
CLI & Config Examples
Generate a 256-bit Base64 PSK for IPsec / IKEv2
openssl rand -base64 32Generate a 32-byte WireGuard PresharedKey locally
wg genpskGenerate a 512-bit hex RFC 8784 post-quantum IPsec PPK
openssl rand -hex 64secrets {
ike-branch-office {
id-local = vpn-hq.example.com
id-remote = vpn-branch.example.com
secret = "0s<paste-your-256-bit-base64-psk-here>"
}
ppk-post-quantum {
id = pq-branch-01
secret = 0x<paste-your-512-bit-hex-ppk-here>
}
}Related VPN & Key Generators
Post-quantum defense-in-depth for VPNs
Mixing a 256-bit or 512-bit symmetric Pre-Shared Key (PSK) into WireGuard (PresharedKey) or IKEv2/IPsec (RFC 8784 PPK) defends captured tunnel traffic against harvest-now, decrypt-later quantum attacks without breaking existing peers. All keys are generated locally via crypto.getRandomValues() and never leave your device.