IPsec secret max/preferred length

I set up a L2TP/IPsec VPN for remote users.

What is the max length / preferred length for IPsec secret?

(Also, what is the user password length I should aim for?)

Thanks

I’m not sure about the user password; as for the shared secret, a 128-byte random string (i.e. 256 hexadecimal characters) is the best one you can have.

Tested it, and it works. 128 bit key, Aa#.

Also tested user password; 128 bit key Aa# works.