WPA Key Generator
Work out the 256-bit pre-shared key a WPA2 network derives from its name and passphrase from network name (ssid), wpa2 passphrase (8-63 characters). PSK = PBKDF2-HMAC-SHA1(passphrase, SSID, 4096 iterations, 32 bytes), and the page prints the substitution so the result can be checked by hand.
WPA Key Generator
Work out the 256-bit pre-shared key a WPA2 network derives from its name and passphrase from network name (ssid), wpa2 passphrase (8-63 characters). PSK = PBKDF2-HMAC-SHA1(passphrase, SSID, 4096 iterations, 32 bytes), and the page prints the substitution so the result can be checked by hand.
How this page computes
PSK = PBKDF2-HMAC-SHA1(passphrase, SSID, 4096 iterations, 32 bytes)
The same passphrase on the same SSID always gives the same key, which is why a wrong passphrase or a wrong SSID both fail to connect. Nothing is generated at random and nothing is sent anywhere.
The page implements the hash itself so the answer is synchronous, and the IEEE test vector is checked by the test suite rather than by the page.
The calculation runs entirely in this browser tab; nothing is uploaded.
WPA Key Generator computes the 256-bit pre-shared key a WPA2 network derives from its name and passphrase. PSK = PBKDF2-HMAC-SHA1(passphrase, SSID, 4096 iterations, 32 bytes). The page prints the rule, the numbers substituted into it and the result, so the arithmetic can be checked by hand.
The same passphrase on the same SSID always gives the same key, which is why a wrong passphrase or a wrong SSID both fail to connect. Nothing is generated at random and nothing is sent anywhere. Pressed with network name MyNetwork, wpa2 passphrase correct horse battery, it answers: fc3067dc 77478bf4 36dcf9bf 9f3b85c2 2d2a1eaa 216a4f6a 3ac57542 de1ccca2
How to use WPA Key Generator
Enter network name MyNetwork, wpa2 passphrase correct horse battery, then press Run: the page evaluates the 256-bit pre-shared key a WPA2 network derives from its name and passphrase and prints every line of the working. Typed input is read exactly as written, and a blank field is refused with its name.
Read the first line as the answer and the lines below it as the substitution. If a value is out of range the page refuses it by field and reason instead of printing a number.
With network name MyNetwork, wpa2 passphrase correct horse battery, the answer is fc3067dc 77478bf4 36dcf9bf 9f3b85c2 2d2a1eaa 216a4f6a 3ac57542 de1ccca2.
It is a function, not a random key
The same passphrase on the same SSID always gives the same key, which is why a wrong passphrase or a wrong SSID both fail to connect. Nothing is generated at random and nothing is sent anywhere.
The page implements the hash itself so the answer is synchronous, and the IEEE test vector is checked by the test suite rather than by the page.
What to Expect
Best for
- Working out the 256-bit pre-shared key a WPA2 network derives from its name and passphrase without a spreadsheet
- Checking a figure someone else quoted
- Seeing the formula behind an answer
Not ideal for
- A passphrase outside 8–63 printable ASCII characters, or an SSID outside 1–32 bytes, is refused: those are the limits of the WPA2 form.
- A quantity the page cannot compute, which it refuses instead of estimating
- Rounding an answer that has an exact form
What this tool keeps
- PSK = PBKDF2-HMAC-SHA1(passphrase, SSID, 4096 iterations, 32 bytes)
- Every input exactly as typed
What may need cleanup
- Nothing: the printed answer is the final output
- A unit conversion, if the inputs were entered in different units
Common errors
- A passphrase outside 8–63 printable ASCII characters, or an SSID outside 1–32 bytes, is refused: those are the limits of the WPA2 form.
- An empty field is refused with the field's name
Example use cases
- Work out the 256-bit pre-shared key a WPA2 network derives from its name and passphrase for one set of inputs
- Check the result against the formula by hand
- See which input the answer is most sensitive to
Sample input
WPA Key Generator: network name MyNetwork, wpa2 passphrase correct horse battery
Sample output
fc3067dc 77478bf4 36dcf9bf 9f3b85c2 2d2a1eaa 216a4f6a 3ac57542 de1ccca2 — Hex, ungrouped: fc3067dc77478bf436dcf9bf9f3b85c22d2a1eaa216a4f6a3ac57542de1ccca2
Who this is for
- Students checking a formula
- Anyone who needs the number and the working
Frequently asked questions
What formula does this page use?
PSK = PBKDF2-HMAC-SHA1(passphrase, SSID, 4096 iterations, 32 bytes). The page prints the substitution as well, so the answer can be checked against the rule.
What does WPA Key Generator refuse?
A passphrase outside 8–63 printable ASCII characters, or an SSID outside 1–32 bytes, is refused: those are the limits of the WPA2 form.
What does the default example give?
Network name MyNetwork, wpa2 passphrase correct horse battery gives fc3067dc 77478bf4 36dcf9bf 9f3b85c2 2d2a1eaa 216a4f6a 3ac57542 de1ccca2. Every line below that restates the same arithmetic.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.