Decrypting private key saved in iOS wallet app backup

Hello,

One year ago I made a backup of my iOS phone through iTunes which includes a copy of the NEM wallet app. Whenever I restore this backup the wallet app asks for the password so I can login to my (encrypted) wallet. I can’t quite remember which password I used so I have to try to get it right by trial and error. However if I enter a wrong password (I think) the app crashes, I assume this happens because it tries to encrypt the wallet file a second time. In order to try a different password I will have to restore the backup file again and try a different password. This makes it a time-consuming process.

I therefore tried to extract the private key from the backup file, I found a key which I think is encrypted in the field called “ZPRIVATEKEY”. Hopefully the developer of the app can give me an answer to the following question;
What method is used to encrypt this private key? How can I decrypt this key (given that I have the password I used in the app to encrypt the wallet with).

Thank you very much. Hopefully I can unlock the funds which are trapped in this wallet file this way.

Quint