What is the specification of the Wi-Fi password when adding devices?

When adding device networking in APP, there is no limit to the name of wifi, the password length of the wifi is up to 58 bits.