Create a random string for an IPsec preshared key
Internet Protocol security (IPsec) can use preshared keys for authentication. Preshared means that the parties agree on a shared, secret key that is used for authentication. Note that the preshared key is only used for authentication. The IPsec session key that is used to encrypt data sent between the IPsec peers is generated by a Diffie-Hellman key exchange.
Generate a 256-bit string for an IPsec preshared key
- Open the Random String Generator web page (https://textmechanic.com/Random-String-Generator.html) with your browser.
- In random strings, type 1.
- In objects in length, type 32.
- Click Generate random strings.
- Select the generated random string and copy it to your clipboard (Ctrl-C for Windows).
- Paste the content of your clipboard into the location where the pre-shared key should go (Ctrl-V for Windows).
- For additional random strings, start at step 4.