In the case you forgot your Apple ID password, you can reset it online if you’re logged into iCloud. Visit Apple.com/recover and follow the simple procedure to recover your apple id key and restore your data. Apple ID is the key for all apple products such as iCloud, iTunes etc.
Apple ID Recovery Key is a set of 14-character long Recovery Key which is generated during the procedure of two-step signup. If you forget your password or you are unable to access all your trusted devices and your phone number also, the Recovery Key will help to restore your Apple ID account.
If you mistakenly forgot your apple id password for your iphone, then there is no need to worry and face hassel, here are the steps that will help you change or reset your apple id password. Follow them: