Hi илюша чуба,
Thank you for posting in the Q&A Forums.
Solution
Use your iOS device's Settings interface:
The most direct and officially recommended way to view your saved WiFi passwords (but only for networks you're already connected to) is through your iOS device's Settings app. Go to Settings > Wireless LAN > select your WiFi network and tap the “i” icon next to it, if your device is unlocked and you trust the computer (via iTunes or other means). If your device is unlocked and trusted by this computer (via iTunes or other means), you may see a “Password” field with a “Tap here to show password” option next to it.
Use keychain access (if you're using a Mac):
If you're using a Mac, and both your iPhone and Mac use the same Apple ID and have iCloud keychain synchronization enabled, you can try using the Keychain Access app on your Mac to find your WiFi password. This usually only works with macOS 10.13 (High Sierra) and later.
Third-party apps:
While not recommended, there are some third-party apps that claim to help you view WiFi passwords, but they often require additional permissions and settings, and may involve security risks.
Use developer tools (unconventional method):
For developers or advanced users, it is possible to jailbreak your iPhone to gain a higher level of access. However, be aware that jailbreaking violates Apple's security policies and may make the device more vulnerable to malware attacks. Additionally, using certain tools such as iBackupBot after jailbreaking may be able to access WiFi passwords in backup files, but again, this involves complicated steps and security risks.
Regarding your command question
The command wlan show profile “WiFi name” key=clear is actually specific to command line tools used in Windows (e.g. netsh), not iOS. in iOS, there are no such command line tools available. As a result, the quoting problem you're experiencing doesn't apply in iOS contexts.
In short, due to the security design of iOS, you cannot view or change your WiFi password directly through console commands. It is recommended to use the official or secure methods mentioned above to get the WiFi password.
Best regards
NeuviJ
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.