The backup is useless without the password.
There is no place to recover the password from, it only existed on your computer and in your head.
“There is no way to recover your information or turn off Encrypt Backup if you lose or forget the password.”
https://support.apple.com/en-us/HT205220
“ 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, you can make a new encrypted backup of your device by resetting the password. Here’s what to do:
- On your iOS device, go to Settings > General > Reset.
- Tap Reset All Settings and enter your iOS 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 iTunes again and create a new encrypted backup.
You won't be able to use previous encrypted backups, but you can use iTunes to back up your current data and set a new backup password.
If you have a device with iOS 10 or earlier, you can't reset the password. In this case, try the following:
- If someone else set up your device, ask them for the password.
- Use an iCloud backup instead of iTunes. If you don't have an iCloud backup, you can make one.
- Try using an older iTunes backup.”
https://support.apple.com/en-us/HT205220#help