Password & PSK Generator
Strong random passwords and pre-shared keys, generated locally.
~122 bits of entropy · generated locally with your browser’s crypto RNG — nothing is sent anywhere.
About this tool
Free secure password and pre-shared-key generator for device credentials, VPN PSKs and SNMP strings. Choose length and character sets; everything is generated in your browser and never leaves your machine. Everything runs entirely in your browser — nothing you type is sent to a server.
Network devices are full of shared secrets: local admin passwords, IPsec pre-shared keys, RADIUS and TACACS+ keys, SNMP communities and Wi-Fi passphrases. They are typed rarely, stored in a password manager, and must resist offline guessing. This generator creates them in your browser using the operating system's cryptographic random generator (crypto.getRandomValues), so nothing leaves your machine.
How to use the Password & PSK Generator
- Choose the length. For a pre-shared key or any secret that can be attacked offline, use at least 24 characters; 32 is better if the device accepts it.
- Choose the character sets. Some devices reject certain symbols, so turn off symbols if the target does not accept them, and lengthen the secret instead.
- Generate, copy and store it in your password manager before configuring the device.
- Configure both ends, then test the login or tunnel before closing the old session.
Example: an IPsec pre-shared key
A site-to-site VPN between two firewalls uses a pre-shared key. An attacker who captures an IKEv1 aggressive-mode exchange, or who can impersonate a peer, can try to crack the PSK offline, at their own speed. A 32-character random key from letters and digits has about 190 bits of entropy, which is far beyond any offline attack.
Avoid characters that cause trouble in configs: quotes, spaces, and on some platforms ? (which triggers help on Cisco CLIs) or #. Using letters and digits only, with extra length, is the simplest safe choice.
Reading the results
- Length
- The biggest factor in strength. Each extra random character multiplies the work of a brute-force attack.
- Character sets
- More symbols add entropy per character, but length adds more than complexity.
- Entropy
- Roughly length multiplied by log2 of the alphabet size. 80 bits is strong for online logins; aim for 128 bits or more for keys that can be attacked offline.
Common mistakes
- Reusing one PSK or admin password across sites. One leak then opens every site.
- Using Cisco type 7 to store passwords. It is reversible encoding, not encryption; use
enable secretandusername ... secretwith type 8 or 9. - Pasting secrets into chat tools or tickets in clear text.
- Picking a memorable phrase for a PSK. Humans pick predictable phrases; let the generator do it.
Frequently asked questions
Is it safe to generate passwords in a browser?
Yes, when the generator uses the Web Crypto API and runs locally, as this one does. The secret is never transmitted.
How long should a pre-shared key be?
At least 20 to 24 random characters; 32 or more if the device allows. Certificates are stronger than PSKs for site-to-site VPNs where practical.
Which characters should I avoid?
Quotes, spaces, backslashes, and characters with CLI meanings such as ? on Cisco. Check the device's documentation.
How often should I rotate device passwords?
Whenever someone with access leaves, after any suspected exposure, and on a regular schedule that your policy sets.