You can recover deleted photos on iPhone from the Recently Deleted folder in the Photos app or a backup on iCloud, iTunes, or cloud services.
You can use iCloud Keychain or iCloud Keychain to save your passwords and easily access them on your iPhone. Here's how to recover deleted passwords on your iPhone.