Encrypt the wifi Passord

Regarding the example of AWS IOT .
In the provided example , SSID and PWD are hard-coded .
Is there any way to safely pass the password instead of storing it in plain text with in device?
Like from mobile app ?

Device :ESP32

hi @VikasSinghBhadouria
You can use the Zerynth app for your smartphone, and make input text boxes in the UI, But this way the SSID and password are not being encrypted, They will be sent as plain strings.

Let me know your thoughts