Hi Alex thank you for the reply.
This is the article i was following :
https://support.apple.com/en-us/HT205220?&cid=acs::fm-itunes_HT205220
Please see the text below:
If you can’t remember the password for your encrypted backup
You can’t restore an encrypted backup without its password. With iOS 11 or later or iPadOS, you can make a new encrypted backup of your device by resetting the password. Here’s what to do:
- On your device, go to Settings > General > Reset.
- Tap Reset All Settings and enter your device passcode.
- Follow the steps to reset your settings. This won't affect your user data or passwords, but it will reset settings like display brightness, Home screen layout, and wallpaper. It also removes your encrypted backup password.
- Connect your device to the Finder or iTunes again and create a new encrypted backup using the steps above.